lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] [task #14395] recv of short buffer should eventually ti


From: Joel Cunningham
Subject: Re: [lwip-devel] [task #14395] recv of short buffer should eventually time out
Date: Thu, 02 Mar 2017 14:59:37 -0600

Thanks for pointing that out.  I’ll have a look at my port to confirm that’s 
implemented correctly.  If so, then I’m not sure how I was seeing the behavior 
I described in the task

Joel

> On Mar 2, 2017, at 1:07 PM, address@hidden wrote:
> 
> Answering on the list since this is off-topic to the task:
> 
> Joel Cunningham:
>> Follow-up Comment #5, task #14395 (project lwip):
>> 
>> I've done some auditing of this behavior in LwIP and wanted to share a couple
>> of things:
>> 
>> My port has LWIP_SO_RCVTIMEO enabled and for sockets that don't set
>> SO_RCVTIMEO, it uses 0 for a timeout, thus providing the behavior of 
>> returning
>> whatever is in the conn->recvmbox and not blocking.
> 
> If I understood this right, your port is wrong:
> In the lwIP sys_arch port layer, a timeout of 0 for lwIP arch does not mean 
> "don't wait" but "wait forever".
> "Don't wait" is only done through the "tryfetch/tryget" functions.
> 
> Simon
> 
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]