| |
@@ -3174,7 +3174,7 @@
|
| |
|
| |
if (secure) {
|
| |
pr_socketoption.option = PR_SockOpt_Nonblocking;
|
| |
- pr_socketoption.value.non_blocking = 0;
|
| |
+ pr_socketoption.value.non_blocking = 1;
|
| |
if (PR_SetSocketOption(*pr_socket, &pr_socketoption) == PR_FAILURE) {
|
| |
PRErrorCode prerr = PR_GetError();
|
| |
slapi_log_err(SLAPI_LOG_ERR,
|
| |
Bug Description:
A secure socket is configured in blocking mode. If an event
is detected on a secure socket a worker tries to receive the request.
If handshake occurs during the read, it can hang longer than
ioblocktimeout because it takes into account the socket option
rather than the timeout used for the ssl_Recv
Fix Description:
The fix is specific to secure socket and set this socket option
to do non blocking IO.
https://bugzilla.redhat.com/show_bug.cgi?id=1668457
Reviewed by: ?
Platforms tested: F28
Flag Day: no
Doc impact: no