+2  A: 

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.

Amit Ben Shahar