tcp_server hang
Eduard Ivanov
houspi at gmail.com
Wed Sep 19 12:07:01 CEST 2018
Thanks a lot.
It really helped.
I thought that shutdown would be enough.
ср, 19 сент. 2018 г. в 11:44, Marc Lehmann <schmorp at schmorp.de>:
> 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
> -=====/_/_//_/\_,_/ /_/\_\
>
--
Eduard Ivanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20180919/a8288e9b/attachment.html>
More information about the anyevent
mailing list