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
46d1e6bb
Commit
46d1e6bb
authored
Oct 24, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Increase block size of connection wide allocator to 512
parent
04606b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+8
-1
No files found.
src/shrpx_client_handler.cc
View file @
46d1e6bb
...
...
@@ -378,7 +378,14 @@ int ClientHandler::upstream_http1_connhd_read() {
ClientHandler
::
ClientHandler
(
Worker
*
worker
,
int
fd
,
SSL
*
ssl
,
const
StringRef
&
ipaddr
,
const
StringRef
&
port
,
int
family
,
const
UpstreamAddr
*
faddr
)
:
balloc_
(
256
,
256
),
:
// We use balloc_ for TLS session ID (64), ipaddr (IPv6) (39),
// port (5), forwarded-for (IPv6) (41), alpn (5), proxyproto
// ipaddr (15), proxyproto port (5), sni (32, estimated). we
// need terminal NULL byte for each. We also require 8 bytes
// header for each allocation. We align at 16 bytes boundary,
// so the required space is 64 + 48 + 16 + 48 + 16 + 16 + 16 +
// 32 + 8 + 8 * 8 = 328.
balloc_
(
512
,
512
),
conn_
(
worker
->
get_loop
(),
fd
,
ssl
,
worker
->
get_mcpool
(),
get_config
()
->
conn
.
upstream
.
timeout
.
write
,
get_config
()
->
conn
.
upstream
.
timeout
.
read
,
...
...
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