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
a42faf1c
Commit
a42faf1c
authored
Sep 23, 2018
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Write TLS alert during handshake
parent
4aac05e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/shrpx_connection.cc
src/shrpx_connection.cc
+10
-1
No files found.
src/shrpx_connection.cc
View file @
a42faf1c
...
@@ -461,12 +461,21 @@ int Connection::tls_handshake() {
...
@@ -461,12 +461,21 @@ int Connection::tls_handshake() {
break
;
break
;
case
SSL_ERROR_WANT_WRITE
:
case
SSL_ERROR_WANT_WRITE
:
break
;
break
;
case
SSL_ERROR_SSL
:
case
SSL_ERROR_SSL
:
{
if
(
LOG_ENABLED
(
INFO
))
{
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"tls: handshake libssl error: "
LOG
(
INFO
)
<<
"tls: handshake libssl error: "
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
}
}
struct
iovec
iov
;
auto
iovcnt
=
tls
.
wbuf
.
riovec
(
&
iov
,
1
);
auto
nwrite
=
writev_clear
(
&
iov
,
iovcnt
);
if
(
nwrite
>
0
)
{
tls
.
wbuf
.
drain
(
nwrite
);
}
return
SHRPX_ERR_NETWORK
;
return
SHRPX_ERR_NETWORK
;
}
default:
default:
if
(
LOG_ENABLED
(
INFO
))
{
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"tls: handshake libssl error "
<<
err
;
LOG
(
INFO
)
<<
"tls: handshake libssl error "
<<
err
;
...
...
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