sharing udp socket between several processes
Marc Lehmann
schmorp at schmorp.de
Wed Dec 30 06:27:28 CET 2015
On Tue, Dec 29, 2015 at 12:20:43PM -0800, Kirill Timofeev <kirill.timofeev at hulu.com> wrote:
> but I see that some incoming packets are lost with 2 childs:
All I can see is that 8476 packets apparently have been received, not hat
they have been lost - you don't seem to do any error checking on send, and
depending on how fast ruby does it's thing, it could easily make the kernel
run out of packet buffers.
so first make sure you don't get ENOBUFS or another error.
I haven't looked at your progrma in detail, but since running two
processes is much less efficient than one, I would first check that you
really did send all those packets.
I also don't know of anything that could go wrong specifically with
multiple processes, apart from the myriad issues around udp receiving in
general.
--
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 libev
mailing list