This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, steve.dower, tim.golden, zach.ware
Date 2014-12-02.11:19:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417519184.51.0.0584067383509.issue22977@psf.upfronthosting.co.za>
In-reply-to
Content
The following code generates a connection reset error on Wine (Windows emulator, because I don’t have actual Windows to test on). Probably only a minor issue, but the error message isn’t quite right:

>>> s = create_connection(("localhost", 8181))
>>> # Server end accepts connection and then closes it
>>> s.sendall(b"3" * 3000000)                 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ConnectionResetError: [WinError 10054] Windows Error 0x%X

I’m just guessing, but looking at Python/errors.c, there are two PyUnicode_FromFormat("Windows Error 0x%X", ...) calls. The documentation for that function says only a lower-case %x is supported, so that would explain the behaviour I am seeing.
History
Date User Action Args
2014-12-02 11:19:44martin.pantersetrecipients: + martin.panter, tim.golden, zach.ware, steve.dower
2014-12-02 11:19:44martin.pantersetmessageid: <1417519184.51.0.0584067383509.issue22977@psf.upfronthosting.co.za>
2014-12-02 11:19:44martin.panterlinkissue22977 messages
2014-12-02 11:19:44martin.pantercreate