Why am i getting "error:1409F07F:SSL routines:SSL3_WRITE_PENDING: bad write retry" error while attem

Posted by Amit Ben Shahar on Stack Overflow See other posts from Stack Overflow or by Amit Ben Shahar
Published on 2010-06-08T12:25:49Z Indexed on 2010/06/08 12:32 UTC
Read the original article Hit count: 766

Filed under:
|
|

I came across this error, and had to look in a lot of placed until i was able to find the reason for this error and thought this might save someone else the hassle. the reason is pretty simple: when SSL_Write returns with SSL_ERROR_WANT_WRITE or SSL_ERROR_WANT_READ, you have to repeat the call to SSL_write with the same parameters again, after the condition is satisfied.

Calling it with different parameters, will yield the 1409F07F bar write retry error.

Hope this saved someone's important time :P

Amit.

© Stack Overflow or respective owner

Related posts about error

Related posts about openssl