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+noam=silrd....@nongnu.org] On 
Behalf Of Noam Weissman
Sent: Wednesday, May 31, 2017 7:38 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?


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+noam=silrd....@nongnu.org<mailto:lwip-users-bounces+noam=silrd....@nongnu.org>>
 on behalf of Arpit Agarwal 
<arpi...@alumni.iitg.ernet.in<mailto:arpi...@alumni.iitg.ernet.in>>
Sent: Wednesday, May 31, 2017 6:33 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?


Hi Noam,

Just to clarify another thing, is the environment where you are trying to use 
lwip_select also uses select for file descriptors ?
If yes then there is a possibility of malfunctioning as if I am not wrong 
lwip_select is not meant to be used with file descriptors as opposed normal BSD 
style select which is normally meant for both file and socket descriptors.

I used to face similar problems when porting lwip to an RTOS with POSIX 
compliance  / BSD-style API support.

If this is not the case, then probably I have no clue what might be causing 
this malfunctioning as I don't have the code and environment you are using.



--
Thanks & Regards,
ARPIT AGARWAL
Alumni, Department Of CSE
IIT Guwahati-781039 (INDIA)
M: (+91)-8792793063
E: arpi...@alumni.iitg.ernet.in<mailto:arpi...@alumni.iitg.ernet.in>
    arpit0...@gmail.com<mailto:arpit0...@gmail.com>

-----------------------------------------------------------------------------------------
“ The greater part of progress is the desire to progress. ” — Seneca


________________________________
From: lwip-users 
<lwip-users-bounces+arpit.a=alumni.iitg.ernet...@nongnu.org<mailto:lwip-users-bounces+arpit.a=alumni.iitg.ernet...@nongnu.org>>
 on behalf of Noam Weissman <n...@silrd.com<mailto:n...@silrd.com>>
Sent: Wednesday, May 31, 2017 8:44 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?


Thanks I will check that tomorrow :-)

________________________________
From: lwip-users 
<lwip-users-bounces+noam=silrd....@nongnu.org<mailto:lwip-users-bounces+noam=silrd....@nongnu.org>>
 on behalf of goldsimon <goldsi...@gmx.de<mailto:goldsi...@gmx.de>>
Sent: Wednesday, May 31, 2017 5:53 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP 1.41 select does not return ?



Noam Weissman:
>Were is the semaphore released ?

In "event_callback()", if I remember correctly.

Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org<mailto:lwip-users@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/lwip-users
lwip-users Info Page - 
non-GNU<https://lists.nongnu.org/mailman/listinfo/lwip-users>
lists.nongnu.org
Welcome to the lwip-users mailing list. Use it to ask questions, share your 
experience and discuss new ideas. To see the collection of prior postings to 
the list ...


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

Reply via email to