Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
82cd110d
Commit
82cd110d
authored
Aug 27, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Use SHRPX_MAX_UDP_PAYLOAD_SIZE
parent
d2729193
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/shrpx_quic_connection_handler.cc
src/shrpx_quic_connection_handler.cc
+3
-3
No files found.
src/shrpx_quic_connection_handler.cc
View file @
82cd110d
...
...
@@ -295,7 +295,7 @@ int QUICConnectionHandler::send_retry(
return
-
1
;
}
std
::
array
<
uint8_t
,
1280
>
buf
;
std
::
array
<
uint8_t
,
SHRPX_MAX_UDP_PAYLOAD_SIZE
>
buf
;
auto
nwrite
=
ngtcp2_crypto_write_retry
(
buf
.
data
(),
buf
.
size
(),
version
,
&
iscid
,
...
...
@@ -319,7 +319,7 @@ int QUICConnectionHandler::send_version_negotiation(
sv
[
0
]
=
generate_reserved_version
(
remote_addr
,
version
);
sv
[
1
]
=
NGTCP2_PROTO_VER_V1
;
std
::
array
<
uint8_t
,
1280
>
buf
;
std
::
array
<
uint8_t
,
SHRPX_MAX_UDP_PAYLOAD_SIZE
>
buf
;
uint8_t
rand_byte
;
util
::
random_bytes
(
&
rand_byte
,
&
rand_byte
+
1
,
worker_
->
get_randgen
());
...
...
@@ -364,7 +364,7 @@ int QUICConnectionHandler::send_stateless_reset(const UpstreamAddr *faddr,
return
-
1
;
}
std
::
array
<
uint8_t
,
1280
>
buf
;
std
::
array
<
uint8_t
,
SHRPX_MAX_UDP_PAYLOAD_SIZE
>
buf
;
auto
nwrite
=
ngtcp2_pkt_write_stateless_reset
(
buf
.
data
(),
buf
.
size
(),
token
.
data
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment