David Siroky added the comment:
I didn't meant blocking as setblocking(True). I use select/poll but I can't use
returned value from send() immediately since in Windows there are often needed
more send rounds to actually know how much data was sent.
E.g. in Linux I know it after
David Siroky added the comment:
Sorry, I attached wrong example version. It uses repeated sslsock.write() of
the same buffer after catching SSL_ERROR_WANT_WRITE. It delivers the full block
but this is a blocking operation.
I'm troubled with non-blocking writes. But as I dig deeper int
New submission from David Siroky :
Trying to send large bulk of data in MS Windows via non-blocking SSLSocket
raises an exception but part of the data is delivered.
E.g.
ssl_socket.write(b"a" * 20)
raises
ssl.SSLError: [Errno 3] _ssl.c:1126: The operation did not complete (wri