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
0e87d464
Commit
0e87d464
authored
Oct 14, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
2fb8c260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/shrpx.cc
src/shrpx.cc
+4
-6
No files found.
src/shrpx.cc
View file @
0e87d464
...
...
@@ -111,7 +111,7 @@ namespace shrpx {
#define _KERNEL_FASTOPEN
// conditional define for TCP_FASTOPEN mostly on ubuntu
#ifndef TCP_FASTOPEN
#define TCP_FASTOPEN
23
#define TCP_FASTOPEN 23
#endif
// conditional define for SOL_TCP mostly on ubuntu
...
...
@@ -618,10 +618,10 @@ int create_tcp_server_socket(int family) {
continue
;
}
if
(
get_config
()
->
fastopen
>
0
)
{
if
(
get_config
()
->
fastopen
>
0
)
{
val
=
get_config
()
->
fastopen
;
if
(
setsockopt
(
fd
,
SOL_TCP
,
TCP_FASTOPEN
,
&
val
,
static_cast
<
socklen_t
>
(
sizeof
(
val
)))
==
-
1
)
{
static_cast
<
socklen_t
>
(
sizeof
(
val
)))
==
-
1
)
{
LOG
(
WARN
)
<<
"Failed to set TCP_FASTOPEN option to listener socket"
;
}
}
...
...
@@ -1244,9 +1244,7 @@ Performance:
and limits the maximum length for the queue of connections
that have not yet completed the three-way handshake.
If value is 0 then fast open is disabled.
Default: )"
<<
util
::
utos_with_unit
(
get_config
()
->
fastopen
)
<<
R"(
Default: )"
<<
util
::
utos_with_unit
(
get_config
()
->
fastopen
)
<<
R"(
Timeout:
--frontend-http2-read-timeout=<DURATION>
Specify read timeout for HTTP/2 and SPDY frontend
...
...
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