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
64589750
Commit
64589750
authored
Jan 02, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Reset buffer on empty
parent
fe8f2a46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+2
-1
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+3
-1
No files found.
src/shrpx_client_handler.cc
View file @
64589750
...
@@ -156,11 +156,11 @@ int ClientHandler::write_clear() {
...
@@ -156,11 +156,11 @@ int ClientHandler::write_clear() {
wlimit_
.
drain
(
nwrite
);
wlimit_
.
drain
(
nwrite
);
continue
;
continue
;
}
}
wb_
.
reset
();
if
(
on_write
()
!=
0
)
{
if
(
on_write
()
!=
0
)
{
return
-
1
;
return
-
1
;
}
}
if
(
wb_
.
rleft
()
==
0
)
{
if
(
wb_
.
rleft
()
==
0
)
{
wb_
.
reset
();
break
;
break
;
}
}
}
}
...
@@ -310,6 +310,7 @@ int ClientHandler::write_tls() {
...
@@ -310,6 +310,7 @@ int ClientHandler::write_tls() {
continue
;
continue
;
}
}
wb_
.
reset
();
if
(
on_write
()
!=
0
)
{
if
(
on_write
()
!=
0
)
{
return
-
1
;
return
-
1
;
}
}
...
...
src/shrpx_http2_session.cc
View file @
64589750
...
@@ -1653,11 +1653,11 @@ int Http2Session::write_clear() {
...
@@ -1653,11 +1653,11 @@ int Http2Session::write_clear() {
continue
;
continue
;
}
}
wb_
.
reset
();
if
(
on_write
()
!=
0
)
{
if
(
on_write
()
!=
0
)
{
return
-
1
;
return
-
1
;
}
}
if
(
wb_
.
rleft
()
==
0
)
{
if
(
wb_
.
rleft
()
==
0
)
{
wb_
.
reset
();
break
;
break
;
}
}
}
}
...
@@ -1729,6 +1729,7 @@ int Http2Session::read_tls() {
...
@@ -1729,6 +1729,7 @@ int Http2Session::read_tls() {
return
-
1
;
return
-
1
;
}
}
rb_
.
reset
();
struct
iovec
iov
[
2
];
struct
iovec
iov
[
2
];
auto
iovcnt
=
rb_
.
wiovec
(
iov
);
auto
iovcnt
=
rb_
.
wiovec
(
iov
);
if
(
iovcnt
>
0
)
{
if
(
iovcnt
>
0
)
{
...
@@ -1792,6 +1793,7 @@ int Http2Session::write_tls() {
...
@@ -1792,6 +1793,7 @@ int Http2Session::write_tls() {
continue
;
continue
;
}
}
wb_
.
reset
();
if
(
on_write
()
!=
0
)
{
if
(
on_write
()
!=
0
)
{
return
-
1
;
return
-
1
;
}
}
...
...
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