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
5cd1d4f0
Commit
5cd1d4f0
authored
Sep 08, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clang warnings
parent
72802b92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
21 deletions
+4
-21
src/HttpServer.cc
src/HttpServer.cc
+2
-4
src/http2_test.cc
src/http2_test.cc
+2
-1
src/shrpx_downstream.cc
src/shrpx_downstream.cc
+0
-16
No files found.
src/HttpServer.cc
View file @
5cd1d4f0
...
...
@@ -833,9 +833,8 @@ void fill_callback(nghttp2_session_callbacks& callbacks, const Config *config)
class
ListenEventHandler
{
public:
ListenEventHandler
(
Sessions
*
sessions
,
int
fd
,
int
64_t
*
session_id_seed_ptr
)
ListenEventHandler
(
Sessions
*
sessions
,
int64_t
*
session_id_seed_ptr
)
:
sessions_
(
sessions
),
fd_
(
fd
),
session_id_seed_ptr_
(
session_id_seed_ptr
)
{}
void
accept_connection
(
int
fd
,
sockaddr
*
addr
,
int
addrlen
)
...
...
@@ -868,7 +867,6 @@ public:
}
private:
Sessions
*
sessions_
;
int
fd_
;
int64_t
*
session_id_seed_ptr_
;
};
...
...
@@ -960,7 +958,7 @@ int start_listen(event_base *evbase, Sessions *sessions,
auto
evlistener
=
evconnlistener_new
(
evbase
,
evlistener_acceptcb
,
new
ListenEventHandler
(
sessions
,
fd
,
session_id_seed_ptr
),
new
ListenEventHandler
(
sessions
,
session_id_seed_ptr
),
LEV_OPT_REUSEABLE
|
LEV_OPT_CLOSE_ON_FREE
,
256
,
fd
);
...
...
src/http2_test.cc
View file @
5cd1d4f0
...
...
@@ -33,7 +33,8 @@
using
namespace
nghttp2
;
#define MAKE_NV(K, V) {(uint8_t*)K, (uint8_t*)V, strlen(K), strlen(V)}
#define MAKE_NV(K, V) {(uint8_t*)K, (uint8_t*)V, \
(uint16_t)strlen(K), (uint16_t)strlen(V)}
namespace
shrpx
{
...
...
src/shrpx_downstream.cc
View file @
5cd1d4f0
...
...
@@ -143,20 +143,6 @@ void check_expect_100_continue(bool *res,
}
}
// namespace
namespace
{
void
check_connection_close
(
bool
*
connection_close
,
const
Headers
::
value_type
&
item
)
{
if
(
util
::
strieq
(
item
.
first
.
c_str
(),
"connection"
))
{
if
(
util
::
strifind
(
item
.
second
.
c_str
(),
"close"
))
{
*
connection_close
=
true
;
}
else
if
(
util
::
strifind
(
item
.
second
.
c_str
(),
"keep-alive"
))
{
*
connection_close
=
false
;
}
}
}
}
// namespace
namespace
{
auto
name_less
=
[](
const
Headers
::
value_type
&
lhs
,
const
Headers
::
value_type
&
rhs
)
...
...
@@ -218,7 +204,6 @@ void Downstream::set_last_request_header_value(const std::string& value)
item
.
second
=
value
;
check_transfer_encoding_chunked
(
&
chunked_request_
,
item
);
check_expect_100_continue
(
&
request_expect_100_continue_
,
item
);
//check_connection_close(&request_connection_close_, item);
}
bool
Downstream
::
get_request_header_key_prev
()
const
...
...
@@ -402,7 +387,6 @@ void Downstream::set_last_response_header_value(const std::string& value)
Headers
::
value_type
&
item
=
response_headers_
.
back
();
item
.
second
=
value
;
check_transfer_encoding_chunked
(
&
chunked_response_
,
item
);
//check_connection_close(&response_connection_close_, item);
}
bool
Downstream
::
get_response_header_key_prev
()
const
...
...
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