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
92260ccc
Commit
92260ccc
authored
Dec 20, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add patch for http-parser to handle tunneling connection transparently
parent
9425f8a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
src/http-parser.patch
src/http-parser.patch
+28
-0
No files found.
src/http-parser.patch
0 → 100644
View file @
92260ccc
commit a143133d43420ef89e4ba0d84c73998863cf9f81
Author: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Wed Jul 11 18:46:00 2012 +0900
Use http_parser for tunneling connection transparently
diff --git a/examples/http-parser/http_parser.c b/examples/http-parser/http_parser.c
index 0c11eb8..610da57 100644
--- a/examples/http-parser/http_parser.c
+++ b/examples/http-parser/http_parser.c
@@ -1627,9 +1627,14 @@
size_t http_parser_execute (http_parser *parser,
/* Exit, the rest of the connect is in a different protocol. */
if (parser->upgrade) {
- parser->state = NEW_MESSAGE();
- CALLBACK_NOTIFY(message_complete);
- return (p - data) + 1;
+ /* We want to use http_parser for tunneling connection
+ transparently */
+ /* Read body until EOF */
+ parser->state = s_body_identity_eof;
+ break;
+ /* parser->state = NEW_MESSAGE(); */
+ /* CALLBACK_NOTIFY(message_complete); */
+ /* return (p - data) + 1; */
}
if (parser->flags & F_SKIPBODY) {
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