Skip to content

Commit 832f30a

Browse files
committed
clientRead: keep reading if client not connected but data is available
1 parent 3cd7da1 commit 832f30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BearSSLClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ int BearSSLClient::clientRead(void *ctx, unsigned char *buf, size_t len)
509509
{
510510
Client* c = (Client*)ctx;
511511

512-
if (!c->connected()) {
512+
if (!c->connected() && !c->available()) {
513513
return -1;
514514
}
515515

0 commit comments

Comments
 (0)