|
From: | Noam Weissman |
Subject: | Re: [lwip-users] LwIP 1.41 select does not return ? |
Date: | Mon, 5 Jun 2017 07:26:18 +0000 |
Hi All, About a week ago I asked what to do when select (LwIP 1.41) does not return… Well, after investigating we found out that the problem is due to how getaadrinfo function in LwIP 1.41 was implemented. The older code did not handle the hints param properly. As a result when IP address was
NULL, it caused the socket to be assigned to local loop-back and as a result a connection was seems to fail. I have changed my test bench and upgraded to LwIP 2.02 With 2.02 everything now works as expected. Thanks again to everyone doing a great work on LwIP... BR, Noam. From: lwip-users [mailto:lwip-users-bounces+address@hidden
On Behalf Of Noam Weissman Hi Arpit, I am not sure I need to check. I know that the code uses something called virtual file system for devices that do not have
a file system. Maybe you have a point there
😊... I will check that, thanks. when I commented the call to select and left to code to block on accept it also did not return
when a connection was made. In general a server code: create socket, set options, bind, listen, accept They do about the same but for some reason their code hangs ?.. so it should be something else related to the porting or file system as you mentioned. Thanks for everyone that made notes... BR, Noam. From: lwip-users <lwip-users-bounces+address@hidden>
on behalf of Arpit Agarwal <address@hidden> Hi Noam, I used to face similar problems when porting lwip to an RTOS with POSIX compliance / BSD-style API support. -- Thanks & Regards, ARPIT AGARWAL Alumni, Department Of CSE IIT Guwahati-781039 (INDIA) M: (+91)-8792793063 ----------------------------------------------------------------------------------------- “ The greater part of progress is the desire to progress. ” — Seneca From: lwip-users <lwip-users-bounces+address@hidden>
on behalf of Noam Weissman <address@hidden> Thanks I will check that tomorrow :-) From: lwip-users <lwip-users-bounces+address@hidden>
on behalf of goldsimon <address@hidden>
|
[Prev in Thread] | Current Thread | [Next in Thread] |