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
a1e88ad8
Commit
a1e88ad8
authored
Apr 04, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Ensure complete packet is written"
This reverts commit c19046b09f8e66713f0e067f986ed92d676eb6b6.
parent
c60ca347
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
src/h2load_quic.cc
src/h2load_quic.cc
+3
-11
No files found.
src/h2load_quic.cc
View file @
a1e88ad8
...
@@ -647,13 +647,7 @@ int Client::write_quic() {
...
@@ -647,13 +647,7 @@ int Client::write_quic() {
case
NGTCP2_ERR_STREAM_SHUT_WR
:
case
NGTCP2_ERR_STREAM_SHUT_WR
:
if
(
nwrite
==
NGTCP2_ERR_STREAM_DATA_BLOCKED
&&
if
(
nwrite
==
NGTCP2_ERR_STREAM_DATA_BLOCKED
&&
ngtcp2_conn_get_max_data_left
(
quic
.
conn
)
==
0
)
{
ngtcp2_conn_get_max_data_left
(
quic
.
conn
)
==
0
)
{
/* Call ngtcp2_conn_writev_stream to ensure that a complete
return
0
;
packet is written to the buffer. */
nwrite
=
ngtcp2_conn_writev_stream
(
quic
.
conn
,
&
ps
.
path
,
buf
.
data
(),
quic
.
max_pktlen
,
nullptr
,
NGTCP2_WRITE_STREAM_FLAG_NONE
,
/* stream_id = */
0
,
/* fin = */
0
,
nullptr
,
0
,
timestamp
(
worker
->
loop
));
break
;
}
}
if
(
s
->
block_stream
(
stream_id
)
!=
0
)
{
if
(
s
->
block_stream
(
stream_id
)
!=
0
)
{
...
@@ -668,10 +662,8 @@ int Client::write_quic() {
...
@@ -668,10 +662,8 @@ int Client::write_quic() {
continue
;
continue
;
}
}
if
(
nwrite
<
0
)
{
quic
.
last_error
=
quic
::
err_transport
(
nwrite
);
quic
.
last_error
=
quic
::
err_transport
(
nwrite
);
return
-
1
;
return
-
1
;
}
}
}
quic_restart_pkt_timer
();
quic_restart_pkt_timer
();
...
...
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