LibTLS: Change connection state to disconnected after server CloseNotify
Prior to this commit LibTLS closed the connection but did not consider it terminated after receiving and acknowledging a CloseNotify from the server, which led to hangs in DoT (and possibly other users).
This commit is contained in:
parent
7b389ca221
commit
e5ff572d73
1 changed files with 1 additions and 0 deletions
|
|
@ -280,6 +280,7 @@ bool TLSv12::check_connection_state(bool read)
|
|||
if (on_tls_finished)
|
||||
on_tls_finished();
|
||||
}
|
||||
m_context.connection_status = ConnectionStatus::Disconnected;
|
||||
if (m_context.tls_buffer.size()) {
|
||||
dbgln_if(TLS_DEBUG, "connection closed without finishing data transfer, {} bytes still in buffer and {} bytes in application buffer",
|
||||
m_context.tls_buffer.size(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue