On 2022-06-21, massimiliano cialdi via lwip-users <lwip-users@nongnu.org> wrote:

> the setsockopt(SO_RCVTIMEO) POSIX call contemplates the possibility
> of imposing 0 as the 'timeout' parameter, and in that case that
> socket becomes non-blocking (See, for example, 
> https://stackoverflow.com/questions/49706883/disable-socket-timeout-via-setsockopt).

I don't see anywhere on that page where is says that a timeout of zero
makes it non-blocking.

What it says is "If the timeout is set to zero (the default) then the
operation will never timeout."

That does not mean the operation will always immediately return
(non-blocking).

That means the operation will block forever (there will be no timeout)
until it completes completes.

--
Grant


_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to