dlecocq / nsq-py

Hacking on Python NSQ Bindings
MIT License
44 stars 16 forks source link

SSL_ERROR_WANT_WRITE sends same buffer #30

Closed dlecocq closed 10 years ago

dlecocq commented 10 years ago

It turns out that if SSL_ERROR_WANT_WRITE is raises, on the next send attempt, we're supposed to send the same buffer on the socket. So in that event, we save it out to _out_buffer and preferentially use it on the next flush.