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
1657a425
Commit
1657a425
authored
Sep 07, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build with the latest ngtcp2
parent
e929e922
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
src/h2load_quic.cc
src/h2load_quic.cc
+1
-10
src/shrpx_quic_connection_handler.cc
src/shrpx_quic_connection_handler.cc
+4
-4
No files found.
src/h2load_quic.cc
View file @
1657a425
...
...
@@ -305,16 +305,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
SSL_set_quic_use_legacy_codepoint
(
ssl
,
0
);
}
switch
(
remote_addr
->
sa_family
)
{
case
AF_INET
:
quic
.
max_pktlen
=
NGTCP2_MAX_PKTLEN_IPV4
;
break
;
case
AF_INET6
:
quic
.
max_pktlen
=
NGTCP2_MAX_PKTLEN_IPV6
;
break
;
default:
return
-
1
;
}
quic
.
max_pktlen
=
NGTCP2_MAX_UDP_PAYLOAD_SIZE
;
auto
callbacks
=
ngtcp2_callbacks
{
ngtcp2_crypto_client_initial_cb
,
...
...
src/shrpx_quic_connection_handler.cc
View file @
1657a425
...
...
@@ -372,7 +372,7 @@ int QUICConnectionHandler::send_retry(
return
-
1
;
}
std
::
array
<
uint8_t
,
NGTCP2_
DEFAULT_MAX_PKTLEN
>
buf
;
std
::
array
<
uint8_t
,
NGTCP2_
MAX_UDP_PAYLOAD_SIZE
>
buf
;
auto
nwrite
=
ngtcp2_crypto_write_retry
(
buf
.
data
(),
buf
.
size
(),
version
,
&
iscid
,
...
...
@@ -396,7 +396,7 @@ int QUICConnectionHandler::send_version_negotiation(
sv
[
0
]
=
generate_reserved_version
(
remote_addr
,
version
);
sv
[
1
]
=
NGTCP2_PROTO_VER_V1
;
std
::
array
<
uint8_t
,
NGTCP2_
DEFAULT_MAX_PKTLEN
>
buf
;
std
::
array
<
uint8_t
,
NGTCP2_
MAX_UDP_PAYLOAD_SIZE
>
buf
;
uint8_t
rand_byte
;
util
::
random_bytes
(
&
rand_byte
,
&
rand_byte
+
1
,
worker_
->
get_randgen
());
...
...
@@ -455,7 +455,7 @@ int QUICConnectionHandler::send_stateless_reset(const UpstreamAddr *faddr,
return
-
1
;
}
std
::
array
<
uint8_t
,
NGTCP2_
DEFAULT_MAX_PKTLEN
>
buf
;
std
::
array
<
uint8_t
,
NGTCP2_
MAX_UDP_PAYLOAD_SIZE
>
buf
;
auto
nwrite
=
ngtcp2_pkt_write_stateless_reset
(
buf
.
data
(),
buf
.
size
(),
token
.
data
(),
...
...
@@ -481,7 +481,7 @@ int QUICConnectionHandler::send_connection_close(
const
UpstreamAddr
*
faddr
,
uint32_t
version
,
const
ngtcp2_cid
*
ini_dcid
,
const
ngtcp2_cid
*
ini_scid
,
const
Address
&
remote_addr
,
const
Address
&
local_addr
,
uint64_t
error_code
)
{
std
::
array
<
uint8_t
,
NGTCP2_
DEFAULT_MAX_PKTLEN
>
buf
;
std
::
array
<
uint8_t
,
NGTCP2_
MAX_UDP_PAYLOAD_SIZE
>
buf
;
auto
nwrite
=
ngtcp2_crypto_write_connection_close
(
buf
.
data
(),
buf
.
size
(),
version
,
ini_scid
,
ini_dcid
,
error_code
);
...
...
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