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
ed1e84fc
Commit
ed1e84fc
authored
Oct 14, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Improve libssl error logging
parent
1ca64788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/shrpx_connection.cc
src/shrpx_connection.cc
+17
-0
No files found.
src/shrpx_connection.cc
View file @
ed1e84fc
...
@@ -349,6 +349,12 @@ int Connection::tls_handshake() {
...
@@ -349,6 +349,12 @@ int Connection::tls_handshake() {
break
;
break
;
case
SSL_ERROR_WANT_WRITE
:
case
SSL_ERROR_WANT_WRITE
:
break
;
break
;
case
SSL_ERROR_SSL
:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"tls: handshake libssl error: "
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
}
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
;
...
@@ -551,6 +557,12 @@ ssize_t Connection::write_tls(const void *data, size_t len) {
...
@@ -551,6 +557,12 @@ ssize_t Connection::write_tls(const void *data, size_t len) {
// starting write watcher and timer is done in write_clear via
// starting write watcher and timer is done in write_clear via
// bio.
// bio.
return
0
;
return
0
;
case
SSL_ERROR_SSL
:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_write: "
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
}
return
SHRPX_ERR_NETWORK
;
default:
default:
if
(
LOG_ENABLED
(
INFO
))
{
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_write: SSL_get_error returned "
<<
err
;
LOG
(
INFO
)
<<
"SSL_write: SSL_get_error returned "
<<
err
;
...
@@ -599,6 +611,11 @@ ssize_t Connection::read_tls(void *data, size_t len) {
...
@@ -599,6 +611,11 @@ ssize_t Connection::read_tls(void *data, size_t len) {
return
SHRPX_ERR_NETWORK
;
return
SHRPX_ERR_NETWORK
;
case
SSL_ERROR_ZERO_RETURN
:
case
SSL_ERROR_ZERO_RETURN
:
return
SHRPX_ERR_EOF
;
return
SHRPX_ERR_EOF
;
case
SSL_ERROR_SSL
:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_read: "
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
}
return
SHRPX_ERR_NETWORK
;
default:
default:
if
(
LOG_ENABLED
(
INFO
))
{
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_read: SSL_get_error returned "
<<
err
;
LOG
(
INFO
)
<<
"SSL_read: SSL_get_error returned "
<<
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