Message231987
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. |
|
Date |
User |
Action |
Args |
2014-12-02 11:19:44 | martin.panter | set | recipients:
+ martin.panter, tim.golden, zach.ware, steve.dower |
2014-12-02 11:19:44 | martin.panter | set | messageid: <1417519184.51.0.0584067383509.issue22977@psf.upfronthosting.co.za> |
2014-12-02 11:19:44 | martin.panter | link | issue22977 messages |
2014-12-02 11:19:44 | martin.panter | create | |
|