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
8410f684
Commit
8410f684
authored
Aug 10, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Drop connection if client hello is too large
parent
ff44e211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/shrpx_connection.cc
src/shrpx_connection.cc
+9
-0
No files found.
src/shrpx_connection.cc
View file @
8410f684
...
...
@@ -306,6 +306,15 @@ int Connection::tls_handshake() {
// We have limited space for read buffer, so stop reading if it
// filled up.
if
(
tls
.
rb
->
wleft
()
==
0
)
{
if
(
tls
.
handshake_state
!=
TLS_CONN_WRITE_STARTED
)
{
// Reading 16KiB before writing server hello is unlikely for
// ordinary client.
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"tls: client hello is too large"
;
}
return
-
1
;
}
rlimit
.
stopw
();
ev_timer_stop
(
loop
,
&
rt
);
}
...
...
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