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
4bedc9a0
Commit
4bedc9a0
authored
Aug 26, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile with the latest ngtcp2
parent
89aa449d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/h2load_quic.cc
src/h2load_quic.cc
+4
-3
No files found.
src/h2load_quic.cc
View file @
4bedc9a0
...
@@ -512,6 +512,7 @@ int Client::read_quic() {
...
@@ -512,6 +512,7 @@ int Client::read_quic() {
socklen_t
addrlen
=
sizeof
(
su
);
socklen_t
addrlen
=
sizeof
(
su
);
int
rv
;
int
rv
;
size_t
pktcnt
=
0
;
size_t
pktcnt
=
0
;
ngtcp2_pkt_info
pi
{};
for
(;;)
{
for
(;;)
{
auto
nread
=
auto
nread
=
...
@@ -527,7 +528,7 @@ int Client::read_quic() {
...
@@ -527,7 +528,7 @@ int Client::read_quic() {
{
addrlen
,
&
su
.
sa
},
{
addrlen
,
&
su
.
sa
},
};
};
rv
=
ngtcp2_conn_read_pkt
(
quic
.
conn
,
&
path
,
buf
.
data
(),
nread
,
rv
=
ngtcp2_conn_read_pkt
(
quic
.
conn
,
&
path
,
&
pi
,
buf
.
data
(),
nread
,
timestamp
(
worker
->
loop
));
timestamp
(
worker
->
loop
));
if
(
rv
!=
0
)
{
if
(
rv
!=
0
)
{
std
::
cerr
<<
"ngtcp2_conn_read_pkt: "
<<
ngtcp2_strerror
(
rv
)
<<
std
::
endl
;
std
::
cerr
<<
"ngtcp2_conn_read_pkt: "
<<
ngtcp2_strerror
(
rv
)
<<
std
::
endl
;
...
@@ -579,8 +580,8 @@ int Client::write_quic() {
...
@@ -579,8 +580,8 @@ int Client::write_quic() {
}
}
auto
nwrite
=
ngtcp2_conn_writev_stream
(
auto
nwrite
=
ngtcp2_conn_writev_stream
(
quic
.
conn
,
&
ps
.
path
,
buf
.
data
(),
quic
.
max_pktlen
,
&
ndatalen
,
flags
,
quic
.
conn
,
&
ps
.
path
,
nullptr
,
buf
.
data
(),
quic
.
max_pktlen
,
&
ndatalen
,
stream_id
,
reinterpret_cast
<
const
ngtcp2_vec
*>
(
v
),
vcnt
,
flags
,
stream_id
,
reinterpret_cast
<
const
ngtcp2_vec
*>
(
v
),
vcnt
,
timestamp
(
worker
->
loop
));
timestamp
(
worker
->
loop
));
if
(
nwrite
<
0
)
{
if
(
nwrite
<
0
)
{
switch
(
nwrite
)
{
switch
(
nwrite
)
{
...
...
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