Merge f5cff6979d
into 804110a487
This commit is contained in:
commit
266ef30259
|
@ -183,9 +183,7 @@ static int connSocketAccept(connection *conn, ConnectionCallbackFunc accept_hand
|
|||
if (conn->state != CONN_STATE_ACCEPTING) return C_ERR;
|
||||
conn->state = CONN_STATE_CONNECTED;
|
||||
|
||||
connIncrRefs(conn);
|
||||
if (!callHandler(conn, accept_handler)) ret = C_ERR;
|
||||
connDecrRefs(conn);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -563,7 +563,7 @@ static int updateStateAfterSSLIO(tls_connection *conn, int ret_value, int update
|
|||
if (ssl_err == SSL_ERROR_ZERO_RETURN ||
|
||||
((ssl_err == SSL_ERROR_SYSCALL && !errno))) {
|
||||
conn->c.state = CONN_STATE_CLOSED;
|
||||
return -1;
|
||||
return 0;
|
||||
} else {
|
||||
conn->c.state = CONN_STATE_ERROR;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue