Errno 10054 (Connection reset by peer) while using IE

516 views
Skip to first unread message

Karra

unread,
May 22, 2012, 4:58:44 AM5/22/12
to python-...@googlegroups.com

I am running a tornado based application on Windows, on port 8888. My application works as expected if I access it through Chrome or Firefox. But with IE, I get a lot of exceptions. The console logs are as under. I am wondering if there is something wrong with my application code, or if it's a IE quirk. Can someone recognize what is going on? Apologies if this has nothing directly to do with tornado itself.

[W 120522 14:26:35 iostream:341] error on read
    Traceback (most recent call last):
      File "tornado\iostream.pyc", line 336, in _handle_read
      File "tornado\iostream.pyc", line 404, in _read_to_buffer
      File "tornado\iostream.pyc", line 385, in _read_from_socket
    error: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:408] Read error on 464: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:341] error on read
    Traceback (most recent call last):
      File "tornado\iostream.pyc", line 336, in _handle_read
      File "tornado\iostream.pyc", line 404, in _read_to_buffer
      File "tornado\iostream.pyc", line 385, in _read_from_socket
    error: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:408] Read error on 444: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:341] error on read
    Traceback (most recent call last):
      File "tornado\iostream.pyc", line 336, in _handle_read
      File "tornado\iostream.pyc", line 404, in _read_to_buffer
      File "tornado\iostream.pyc", line 385, in _read_from_socket
    error: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:408] Read error on 468: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:341] error on read
    Traceback (most recent call last):
      File "tornado\iostream.pyc", line 336, in _handle_read
      File "tornado\iostream.pyc", line 404, in _read_to_buffer
      File "tornado\iostream.pyc", line 385, in _read_from_socket
    error: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:408] Read error on 460: [Errno 10054] An existing connection was forcibly closed by the remote host
[W 120522 14:26:35 iostream:341] error on read
    Traceback (most recent call last):
      File "tornado\iostream.pyc", line 336, in _handle_read
      File "tornado\iostream.pyc", line 404, in _read_to_buffer
      File "tornado\iostream.pyc", line 385, in _read_from_socket
    error: [Errno 10054] An existing connection was forcibly closed by the remote host

Ben Darnell

unread,
May 24, 2012, 12:55:24 AM5/24/12
to python-...@googlegroups.com
This looks like it's probably a difference between the windows socket
implementation and bsd/posix sockets. I can confirm this behavior
from a quick test in a windows VM, although the logged exceptions
appear to be harmless. Windows is not a fully supported platform for
Tornado, but I'd accept a patch (ideally with a unit test) from
someone who is familiar enough with sockets on windows to fix this
issue.

-Ben

Sriram Karra

unread,
May 24, 2012, 8:48:50 PM5/24/12
to python-...@googlegroups.com
Ben, thank you for looking into this issue. Will wait for some suitable expert to step up to the plate :)

Cheers,
Karra
Reply all
Reply to author
Forward
0 new messages