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
9b271601
Commit
9b271601
authored
Jul 26, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HttpServer: Fix left_connhd_len_ is not updated
parent
32bd1425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/HttpServer.cc
src/HttpServer.cc
+6
-0
src/HttpServer.h
src/HttpServer.h
+1
-0
No files found.
src/HttpServer.cc
View file @
9b271601
...
...
@@ -271,6 +271,7 @@ void connhd_readcb(bufferevent *bev, void *ptr)
return
;
}
leftlen
-=
readlen
;
handler
->
set_left_connhd_len
(
leftlen
);
if
(
leftlen
==
0
)
{
bufferevent_setcb
(
bev
,
readcb
,
writecb
,
eventcb
,
ptr
);
// Run on_read to process data left in buffer since they are not
...
...
@@ -507,6 +508,11 @@ size_t Http2Handler::get_left_connhd_len() const
return
left_connhd_len_
;
}
void
Http2Handler
::
set_left_connhd_len
(
size_t
left
)
{
left_connhd_len_
=
left
;
}
namespace
{
ssize_t
hd_send_callback
(
nghttp2_session
*
session
,
const
uint8_t
*
data
,
size_t
len
,
int
flags
,
...
...
src/HttpServer.h
View file @
9b271601
...
...
@@ -111,6 +111,7 @@ public:
Sessions
*
get_sessions
()
const
;
const
Config
*
get_config
()
const
;
size_t
get_left_connhd_len
()
const
;
void
set_left_connhd_len
(
size_t
left
);
private:
nghttp2_session
*
session_
;
Sessions
*
sessions_
;
...
...
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