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
3a721a9d
Commit
3a721a9d
authored
Oct 14, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Send session ticket after handshake with boringssl
parent
0b609244
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
src/shrpx_connection.cc
src/shrpx_connection.cc
+30
-0
No files found.
src/shrpx_connection.cc
View file @
3a721a9d
...
...
@@ -571,6 +571,36 @@ int Connection::write_tls_pending_handshake() {
tls
.
wbuf
.
drain
(
nwrite
);
}
#if defined(OPENSSL_IS_BORINGSSL)
if
(
!
SSL_in_init
(
tls
.
ssl
))
{
// This will send a session ticket.
auto
nwrite
=
SSL_write
(
tls
.
ssl
,
""
,
0
);
if
(
nwrite
<
0
)
{
auto
err
=
SSL_get_error
(
tls
.
ssl
,
nwrite
);
switch
(
err
)
{
case
SSL_ERROR_WANT_READ
:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"Close connection due to TLS renegotiation"
;
}
return
SHRPX_ERR_NETWORK
;
case
SSL_ERROR_WANT_WRITE
:
break
;
case
SSL_ERROR_SSL
:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_write: "
<<
ERR_error_string
(
ERR_get_error
(),
nullptr
);
}
return
SHRPX_ERR_NETWORK
;
default:
if
(
LOG_ENABLED
(
INFO
))
{
LOG
(
INFO
)
<<
"SSL_write: SSL_get_error returned "
<<
err
;
}
return
SHRPX_ERR_NETWORK
;
}
}
}
#endif // defined(OPENSSL_IS_BORINGSSL)
// We have to start read watcher, since later stage of code expects
// this.
rlimit
.
startw
();
...
...
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