1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Georg Horn found yet another SSL reading problem caused by the non-blocks.

This was a real bummer!
This commit is contained in:
Daniel Stenberg 2002-01-30 15:11:47 +00:00
parent bdea56cd3f
commit b28051881e

View File

@ -326,7 +326,7 @@ int Curl_read(struct connectdata *conn,
/* if there's data pending, then we re-invoke SSL_read() */ /* if there's data pending, then we re-invoke SSL_read() */
break; break;
} }
} while(0); } while(1);
if(loop && SSL_pending(conn->ssl.handle)) if(loop && SSL_pending(conn->ssl.handle))
return -1; /* basicly EWOULDBLOCK */ return -1; /* basicly EWOULDBLOCK */
} }