tcp_server hang
Marc Lehmann
schmorp at schmorp.de
Wed Sep 19 08:44:22 CEST 2018
On Tue, Sep 18, 2018 at 01:23:19PM +0500, Eduard Ivanov <houspi at gmail.com> wrote:
> And my script hangs after processing 1018 requests.
Without looking at it in detail, the number 1018 is so close the the typical
1024 fd limit that most likely, you never close connections. On GNU/Linux,
you can look at /proc/pid/fd when it hangs to see if that is the case, or you
can increase the ulimit to see if that incraeses the number of requests it
handles.
If that is the case, your script probably doesn't hang, but work more or
less normally - it just cannot accept more connections.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list