[usocket-devel] accept on sbcl may return nil
Erik Huelsmann
ehuels at gmail.com
Sun Jul 29 21:28:42 UTC 2007
On 6/16/07, Attila Lendvai <attila.lendvai at gmail.com> wrote:
> hi,
>
> looking at the code of accept in sbcl, it seems that it may return
> with nil in case of sockint::EAGAIN or sockint::EINTR.
>
> what should usocket do in this case? loop until non-nil is returned or
> return nil?
I've given the issue quite a bit of thought and I think it would be
single-thread-multiplexing application friendly to return NIL from
usocket too.
>
> the latter might be more useful when dealing with timeouts, but i'm no
> socket expert of any kind.
Time-outs as well as other signals and idle-processing. Thanks for the
pointer, I'll need to verify usocket's behaviour in this respect.
bye,
Erik.
More information about the usocket-devel
mailing list