Technically speaking, libuv will stop accepting connections if you won't
call `uv_accept()`
in `uv_listen` callback. I'm not sure if actual `uv_listen_stop` is
required, as it won't really
do much.


On Wed, May 14, 2014 at 7:36 PM, Saúl Ibarra Corretgé <[email protected]>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/14/2014 05:30 PM, Iñaki Baz Castillo wrote:
> > 2014-05-14 17:27 GMT+02:00 Saúl Ibarra Corretgé
> > <[email protected]>:
> >> Currently there is no API for that. I've been wanting to add it
> >> for a while now. The API would be uv_listen_start /
> >> uv_listen_stop. No ETA for it though.
> >>
> >> In case you want to work on it ping me so we don't duplicate the
> >> work.
> >
> > So it will in fact close the socket right?
> >
> >
> No, you have uv_close for that. It will stop polling for i/o. The idea
> is to allow the user to control the server a bit if it's flooded with
> connections. If you get EMFILE you may want to uv_listen_stop for a
> bit, wait until some connections are closed, and start listening again.
>
> - --
> Saúl Ibarra Corretgé
> bettercallsaghul.com
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Icedove - http://www.enigmail.net/
>
> iQIcBAEBAgAGBQJTc41hAAoJEEEOVVOum8BZMuUP/RLV+Y8MTZ1Y7zvH1UL+OaxV
> r/hrp04xXwQIqn8IjV6heoR1ACatRj5dgNQbkgN9aadLSUQFeSFLfXmSGZCeL4Ml
> VIa6b0jzoOIFcK100UcogZ9ZGbziwdP6eChBWIC3oNebOdgfHomYzTLSh2o+pOJd
> pl2G3aqEduNujzp6Ku7pCCSBYig5GKTwJPObvyqt81gYUaNrE1OH1SjyNGMd3lVT
> y5HiIUmpEZhYPWueWSa/B0HQ+36PAzuaEoHQxtiYkcrTagyRo/KUhOiTz2Vavh8x
> uOGPRCKowLzhzyltdyCdQUJS48iHjLZqQM9ldEImpJfnQ5s6gLHtE6Osi2YQQIlc
> PsKjIAxuVsvFmV43VGE555bu7sVceGYzipoAoOif/SCNhJwjl/VB4XzG+atxkgWH
> cOyeU56kvhKogNLpDYm8Ynx72d0rClFJ6jbF6stW97qUkBbWVI7TfDhymkAaZzh4
> EYx8PeRju23HfmXV4vUOiP2/9SRWEyundqU8aOYJwIsklqpwWgmZvjV4Z9wkx8B8
> LIWPNT3OOyhZLtOVsQocze6WRu+2EToxq+kaYH3/BqQ2MvxrGh0/lDcR5ajWgO0p
> m3LF3SEj3GdxjrZBHQWdzuogIuFq3jm5OjeGExaYrzb1v7fAQ8h5QhkOAV7IecyQ
> NK2I7zEq+n535wO4HxjR
> =6KB2
> -----END PGP SIGNATURE-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to