Unverified Commit 7ac42ab7 authored by gourav's avatar gourav Committed by GitHub
Browse files

Return -1 when connTLSWrite fails to write due to socket being closed (#9222)

parent d0f36eed
...@@ -759,7 +759,7 @@ static int connTLSWrite(connection *conn_, const void *data, size_t data_len) { ...@@ -759,7 +759,7 @@ static int connTLSWrite(connection *conn_, const void *data, size_t data_len) {
if (ssl_err == SSL_ERROR_ZERO_RETURN || if (ssl_err == SSL_ERROR_ZERO_RETURN ||
((ssl_err == SSL_ERROR_SYSCALL && !errno))) { ((ssl_err == SSL_ERROR_SYSCALL && !errno))) {
conn->c.state = CONN_STATE_CLOSED; conn->c.state = CONN_STATE_CLOSED;
return 0; return -1;
} else { } else {
conn->c.state = CONN_STATE_ERROR; conn->c.state = CONN_STATE_ERROR;
return -1; return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment