lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] Problem with lwip_close()


From: Goldschmidt Simon
Subject: RE: [lwip-users] Problem with lwip_close()
Date: Fri, 6 Jul 2007 12:32:36 +0200

 
> I have been studying how to make a linger close of a socket in lwip.
> First of all, I have used the standard lwip_close() function as it is,
> an I have noticed that it gets stucked in  the
"netconn_delete(sock->conn);"
> statement. I suppose that here it will wait for the closure handshake
to
> get completed or something like that. 
> 

That's strange. Can you tell us which version of lwIP you're using and
do
you know why it got stuck? (e.g. memory problems?)

> Later, I tried to see how to use the SO_LINGER option. And I saw that
this
> option is listed in sockets.h but I cannot find it in sockets.c. I had
a
> look in lwip_setsockopt(), but I did not find the SO_LINGER
definition.
> In addition, I saw that many other options are unimplemented. Then, my
> question is: Can a linger close be implemented under lwip?? How??
Usingo the
> SO_LINGER option in setsockopt ??? 

I don't know if I remember correctly, but I think the last SO_LINGER
implementation
wasn't working correctly and because of that, the code was removed.
I is one point of the lwIP todo-list to implement SO_LINGER, though.


Simon




reply via email to

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