Hi, do you mean you have one thread which is "blocked" on a lwip_read, and another thread call the lwip_close? Right? What lwIP release do you use? ==================================== Frédéric BERNON HYMATOM SA Chef de projet informatique Microsoft Certified Professional Tél. : +33 (0)4-67-87-61-10 Fax. : +33 (0)4-67-70-85-44 Email : [EMAIL PROTECTED] Web Site : http://www.hymatom.fr <http://www.hymatom.fr/> ==================================== P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Steve
Waligurski
Envoyé : vendredi 10 août 2007 18:05
À : [email protected]
Objet : [lwip-users] proper way to close a TCP socket
Hi,
What is the proper sequence of calls for a client to close a TCP socket
connection using lwIP when connected with either static IP or DHCP. My
software is in a constant state of read using lwip_read, it only returns when I
get a packet. If I call close in this state, nothing gets transmitted to the
server and it hangs on the function call. In DHCP mode, it hangs on the call
to dhcp_release. I could always shut down the watchdog timer but would rather
doing something a little more graceful.
Steve
<<image001.jpg>>
<<image002.jpg>>
BEGIN:VCARD VERSION:2.1 N:BERNON;Frédéric;;M. FN:Frédéric BERNON ORG:HYMATOM SA;Recherche et Développement TITLE:Chef de projet informatique TEL;WORK;VOICE:04-67-87-61-10 TEL;WORK;FAX:04-67-70-85-44 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE; LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D= =0AFrance URL;WORK:http://www.hymatom.fr ROLE:Chef de projet informatique EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020404T083210Z END:VCARD
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
