lwip-devel
[Top][All Lists]
Advanced

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

RE: [lwip-devel] [task #6930] Implement SO_LINGER


From: Goldschmidt Simon
Subject: RE: [lwip-devel] [task #6930] Implement SO_LINGER
Date: Thu, 28 Jun 2007 09:04:09 +0200

> I think your patch to do_close is correct since tcp_close 
> handles all the pcb states.
> But I think maybe a loop similiar to the one in netconn_close 
> is still needed. Otherwise, if the sendqueue is full the 
> close will fail.
> 
> What do you think?

That's true. Although I wouldn't handle it in netconn_close but instead
'internally' in api_msg.c (e.g. don't call TCPIP_APIMSG_ACK in do_close
but try again in tcp_poll or tcp_sent and ACK from there).

I did some similar measurements but I don't seem to have reached the
send buffer limit...


Simon




reply via email to

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