Bug fixes from #209

This commit is contained in:
Ian Craggs
2020-07-09 12:01:17 +01:00
parent ad86a276b5
commit 438a9a131f
2 changed files with 16 additions and 3 deletions

View File

@@ -541,6 +541,15 @@ loop:
case SSL_ERROR_WANT_WRITE:
readBlockedOnWrite = true;
break;
case SSL_ERROR_SYSCALL:
SSL_free(_ssl);
_ssl = 0;
_numOfInstance--;
//TCPStack::close();
_busy = false;
_mutex.unlock();
return -1;
break;
default:
ERR_error_string_n(ERR_get_error(), errmsg, sizeof(errmsg));
WRITELOG("Network::recv() %s\n", errmsg);