Date: Tue, 2 Dec 2014 09:52:12 +0530 From: Someone Somewhere <somewheresomeoneis@gmail.com> To: Yuri <yuri@rawbw.com> Cc: freebsd-net@freebsd.org Subject: Re: Can multiple apps listen for TCP on the same port? Message-ID: <CAMW5ToZi9QCFPnF%2BdwjLCyU_OTbZjZTJaDtRGaQ=hDR7tUAP1g@mail.gmail.com> In-Reply-To: <547D1DC6.8030408@rawbw.com> References: <547C5DD3.90604@rawbw.com> <547D1DC6.8030408@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I think backlog value has no direct implication here. What matters is if the listening socket has been closed after accepting the client connection or not. -Kunal. On 2 December 2014 at 07:32, Yuri <yuri@rawbw.com> wrote: > I figured it out. This is 'nc' from the base, imported from OpenBSD 5.6. > > nc has two flaws in its code: it listens with backlog=5 (not 1), and it > doesn't close the listening socket after accept, only after client is done > communicating. > Fixing these two problems makes my app work. > > I first confused it with net/netcat from ports, which is totally different > codebase, and isn't duplex. Looking into their code confused me into making > original wrong assumptions. > > Thanks! > > Yuri > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMW5ToZi9QCFPnF%2BdwjLCyU_OTbZjZTJaDtRGaQ=hDR7tUAP1g>