[New-bugs-announce] [issue12197] non-blocking SSL write in Windows sends large data but raises exception

David Siroky report at bugs.python.org
Fri May 27 20:06:49 CEST 2011


New submission from David Siroky <siroky at dasir.cz>:

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" * 200000)

raises

ssl.SSLError: [Errno 3] _ssl.c:1126: The operation did not complete (write)

There is no way to get the sent bytes count which is essential in non-blocking communication.

ssl_socket.send() returns 0. This should be unified with posix behavior.

----------
components: Extension Modules, Windows
files: ssl_sock_test.py
messages: 137092
nosy: dsiroky
priority: normal
severity: normal
status: open
title: non-blocking SSL write in Windows sends large data but raises exception
type: behavior
versions: Python 2.6, Python 3.2
Added file: http://bugs.python.org/file22157/ssl_sock_test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12197>
_______________________________________


More information about the New-bugs-announce mailing list