Skip to content

Commit b2953f7

Browse files
richaasalfredh
authored andcommitted
tls: don't close connection on SSL_ERROR_ZERO_RETURN error (#217)
1 parent af94ecd commit b2953f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tls/openssl/tls_tcp.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,10 @@ static bool recv_handler(int *err, struct mbuf *mb, bool *estab, void *arg)
306306

307307
switch (ssl_err) {
308308

309+
case SSL_ERROR_ZERO_RETURN:
309310
case SSL_ERROR_WANT_READ:
310311
break;
311312

312-
case SSL_ERROR_ZERO_RETURN:
313-
*err = ECONNRESET;
314-
return true;
315-
316313
default:
317314
*err = EPROTO;
318315
return true;

0 commit comments

Comments
 (0)