[zeromq-dev] patch: non-blocking tcp accept
Martin Hurton
hurtonm at gmail.com
Tue Apr 28 17:11:28 CEST 2009
Hi Dhammika,
On SVR4 based systems the accept(2) call can set errno to EPROTO when
the connection was reset by peer before it has been accepted by the
server. Also it seems the HP-UX sets errno to ENOBUFS in that
situation. Could you update your patch accordingly?
Regards,
Martin Hurton
On Tue, Apr 28, 2009 at 10:24 AM, Dhammika Pathirana <dhammika at gmail.com> wrote:
> Patch to add non-blocking tcp accept.
>
> 1. sets non-blocking flag in tcp listener socket
> 2. moves accept to tcp_listener.in_event()
> 3. passes native socket descriptor to tcp_socket constructor
>
> Builds and tested on linux.
> Would appreciate if someone can run a quick build on a win32 box.
> Hopefully it'll build without any drama.
>
> Requires few changes in zmq_server, perf and examples (mainly in
> tcp_socket constructor).
> If we're happy with this, I'll send a full patch.
>
> Dhammika
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
More information about the zeromq-dev
mailing list