forked from wolfSSL/wolfssl
wolfSSLReceive: Error return on interrupted connection
Interrupted connection should return control to the user since they may want to handle the signal that caused the interrupt. Otherwise, we might never give back control to the user (the timeout would error out but that causes a big delay). socat.yml: in test 475, the test would send a SIGTERM after 3 seconds. We would continue to ignore this signal and continue to call `recvfrom`. Instead we should error out and give control back to the user.
This commit is contained in:
2
.github/workflows/socat.yml
vendored
2
.github/workflows/socat.yml
vendored
@@ -78,4 +78,4 @@ jobs:
|
||||
run: |
|
||||
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib:$LD_LIBRARY_PATH
|
||||
export SHELL=/bin/bash
|
||||
SOCAT=$GITHUB_WORKSPACE/socat-1.8.0.0/socat ./test.sh -t 0.5 --expect-fail 36,64,146,214,216,217,309,310,386,399,402,403,459,460,467,468,478,492,528,530
|
||||
SOCAT=$GITHUB_WORKSPACE/socat-1.8.0.0/socat ./test.sh -t 0.5 --expect-fail 36,64,146,214,216,217,309,310,386,399,402,403,459,460,467,468,475,478,492,528,530
|
||||
|
@@ -10594,7 +10594,7 @@ retry:
|
||||
}
|
||||
}
|
||||
#endif
|
||||
goto retry;
|
||||
return WOLFSSL_FATAL_ERROR;
|
||||
|
||||
case WC_NO_ERR_TRACE(WOLFSSL_CBIO_ERR_CONN_CLOSE):
|
||||
ssl->options.isClosed = 1;
|
||||
|
Reference in New Issue
Block a user