Skip to content

Commit

Permalink
Ensure SSL_accept is called for a second time if EINTR is returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Nov 9, 2017
1 parent a8d4fbd commit ea0a882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ accept_ssl (WSClient * client)
client->sslstatus = WS_TLS_ACCEPTING;
break;
case SSL_ERROR_SYSCALL:
if (ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK))
if (ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR))
break;
case SSL_ERROR_ZERO_RETURN:
case SSL_ERROR_WANT_X509_LOOKUP:
Expand Down

0 comments on commit ea0a882

Please sign in to comment.