-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> Besides removing the socket from the epoll/kqueue/etc. set, > uv_listen_stop() should probably also call listen(sock, 0), > otherwise new connections still end up in the accept queue. On the > other hand, I imagine that's sometimes the desired behavior. > The use case that made me think about this was related to EMFILE (IIRC the Rust folks brought it up). So I'm undecided if keeping them queued or preventing that is the desired behavior. I think I'd go with your suggestion of calling listen(sock, 0). And then lets see where it goes :-) - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTc5ahAAoJEEEOVVOum8BZoQ8QAIQfnCFzEe5dd0odetfL2DsP yrh//ACQ0mwFaRtHJh4Uz50OhDj80Dq/TYfV064zjhfx3lvKkXfV8H2alIPXHV8n 0zrE+X9afo1NRT/GMTxjGZQTZf0UYm7T1bVWagYlX18pi+Xm5P65wuMuzHzuuByl Jb5DrBzAUIxdbacdiWNpngm5UnzNevSKamXoaspPnnitfySOnPSWcSdtFoiJkMCg 0+Od/shLh9B9kcM7Uoac83aWiB3LQGAzlq0I8qZWB9CxbYWIXfbfDn4rXpWoQps9 GiP0Lym28/Y7bfc6ADcHg0rmpnfyGTCwcxvxyQi2EEAnal5f0AV6zdfWkCV1Rr2z J23/H267lrDTYydMSQzYRdxv2bge3If38/2dRB2mylEdKYmJDLpEfzOYcG3ss/7g oRhkONfIVQ0Yli3+bknLd4qLmnl5glZzttXRX2wVaTrdtPPwOXiISzwuDZrLaSRN fys+sgQZnId+hK5oVISUt0Gwk1eOXASzIrzl+hi9oIcv4l9BAFmtGaqoSQYuGw9Z JDRGE+/UkrVcPt0epRdsQ5k/P2xMXv6UGbcYnkNBrywtEEfmtogzwMwbAuWsgh6v pccRCA6PBYGDQqt0nKIDTBWJMg1pJwOdnPsPbKraea7ILl84sdsdbSoMTdJg7mfJ /qPOU06Gr+w8ykRFtZqg =fnhF -----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.
