We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9c1a28 commit b0f7775Copy full SHA for b0f7775
1 file changed
src/socket/AdapterTls.cpp
@@ -114,12 +114,14 @@ namespace Socket
114
115
do {
116
if (sock.nonblock_recv_sync(timeout) == false) {
117
+ // Timeout
118
+ result = -1;
119
break;
120
}
121
122
result = ::gnutls_record_recv(this->session, buf, length);
123
- while (GNUTLS_E_AGAIN == result ||GNUTLS_E_INTERRUPTED == result);
124
+ while (GNUTLS_E_AGAIN == result || GNUTLS_E_INTERRUPTED == result);
125
126
return result;
127
0 commit comments