Re: [tornado] No connection timeout in iostream used by netutil.TCPServer ?

106 views
Skip to first unread message

Ben Darnell

unread,
Aug 11, 2012, 3:41:57 PM8/11/12
to python-...@googlegroups.com
That's correct, we don't currently detect if a connection just
disappears without shutting down cleanly. In some cases the OS or an
intermediate network device will notice and trigger a connection
close, but that can take a very long time. This is one of the things
that a proxy like nginx can take care of for you, and that's why it
hasn't been a priority to build this functionality into tornado
itself.

-Ben

On Tue, Aug 7, 2012 at 9:41 AM, Michal Smrž <ilfir...@gmail.com> wrote:
> Hello,
>
> I have a little problem here, which I am not able to solve out.
>
> I am using netutil.TCPServer in my application for continuous communication
> with some hardware modules.
> If module connect and disconnects, everything is fine and
> iostream_close_callback is called (and I could do some actions).
>
> But if cut power to these modules, no exception is raised and
> iostream_close_callback is never called.
>
> I am confused about that, is it bug, or did I misunderstood something?
>
> Used Ubuntu 12.04 and TinyCore 4.5 with Python3.2 and Tornado 2.3 installed
> by pip.
>
> Thank you
Reply all
Reply to author
Forward
0 new messages