We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a3270 commit 3ab8313Copy full SHA for 3ab8313
libs/ssl/ssl.c
@@ -145,7 +145,10 @@ static bool is_block_error() {
145
}
146
147
static int net_read(void *fd, unsigned char *buf, size_t len) {
148
- int r = recv((SOCKET)(int_val)fd, (char *)buf, (int)len, MSG_NOSIGNAL);
+ int r;
149
+ hl_blocking(true);
150
+ r = recv((SOCKET)(int_val)fd, (char *)buf, (int)len, MSG_NOSIGNAL);
151
+ hl_blocking(false);
152
if( r == SOCKET_ERROR && is_block_error() )
153
return MBEDTLS_ERR_SSL_WANT_READ;
154
return r;
0 commit comments