[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] ERR_MEM in socket layer lwip_send() on non-blocking
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] ERR_MEM in socket layer lwip_send() on non-blocking |
Date: |
Thu, 20 Nov 2014 14:07:42 +0100 |
Fabian Koch wrote:
> we encountered some instances of lwip_send() setting sock->err to ERR_MEM even
> on non-blocking sockets.
> As ERR_MEM is not a fatal error and as there are plenty of if statements
> checking
> for blocking state and doing something different instead of returning this
> error,
> I wondered if that is a bug.
Well, I'd rather call it an inconsistency (or yes, call it a bug). I think it's
still
not finally thought through whether ERR_MEM should be retried or abort a
non-blocking
call. I'd vote for returnin EWOULDBLOCK though...
Simon