Closed GoogleCodeExporter closed 8 years ago
So what you are saying is that there is a POLLIN result on the socket, implying
there is data to be read; but calling read() returns -1, EAGAIN on your system?
This is... unexpected. This is for HTTP traffic, correct?
Original comment by lcam...@gmail.com
on 22 Jul 2010 at 6:47
Oh, I see the problem. A proper fix would be:
/* Retry reading until SSL_ERROR_WANT_READ. */
if (c->proto == PROTO_HTTPS &&
read_res && c->read_len < size_limit) goto SSL_read_more;
Let me know if this helps.
Original comment by lcam...@gmail.com
on 22 Jul 2010 at 6:48
Should be fixed in 1.52. Let me know.
Original comment by lcam...@gmail.com
on 22 Jul 2010 at 6:51
Thank you for the quick response. However, I forgot to point out that I tested
with HTTP, not HTTPS. My quick fix did not take HTTPS into account at all. But
if I understand the SSL_read() documentation correctly, there should not be a
similar error in that case, so the fix in comment 2 should be perfect.
Original comment by otto.gie...@halvarsson.se
on 22 Jul 2010 at 7:48
Original issue reported on code.google.com by
otto.gie...@halvarsson.se
on 22 Jul 2010 at 5:27