Skip to content

Commit

Permalink
tls: Do not restrict re-handshake to client
Browse files Browse the repository at this point in the history
Seems at least newer gnutls will give this error even
in server mode. Since the session code should be
fully resilient to this, the assertion never served much
purpose other other than pointing out an assumption based
mostly on reading library code... (the ultimate docs).
Message-Id: <[email protected]>
  • Loading branch information
Calle Wilund authored and avikivity committed Jan 24, 2018
1 parent 4ed4fa8 commit 0ed15e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/tls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ class session : public enable_lw_shared_from_this<session> {
case GNUTLS_E_REHANDSHAKE:
// server requests new HS. must release semaphore, so set new state
// and return nada.
assert(_type == type::CLIENT); // should never get this in server session
_connected = false;
return make_ready_future<temporary_buffer<char>>();
default:
Expand Down

0 comments on commit 0ed15e9

Please sign in to comment.