lwip-users
[Top][All Lists]
Advanced

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

SV: [lwip-users] Closing after sent


From: Jan Wester
Subject: SV: [lwip-users] Closing after sent
Date: Fri, 23 Nov 2007 09:34:14 +0100

It works well for me, but what confusing me is on ethternet trace, the close from lwip FIN/ACK comes before rest of the data,
the receive side has not start close, half duplex mode ?
 

Med vänlig hälsning/Best Regards
Jan Wester

_________________________________

WHI Konsult AB

Scheelegatan 11, 112 28 Stockholm, Sweden
www.whi.se
address@hidden
+46 8 449 05 30

 


Från: address@hidden [mailto:address@hidden För Frédéric BERNON
Skickat: den 22 november 2007 18:53
Till: Mailing list for lwIP users
Ämne: RE : [lwip-users] Closing after sent

There was such problem with sequential API. To fix it, I think the idea was to call tcp_close, check the return value, and retry (with tcp_sent & tcp_poll) until you got tcp_close(pcb)==ERR_OK. I think that tcp_close was modified for that. About this change, take a look to the lwip_close.patch, at the end of http://savannah.nongnu.org/bugs/?20021 . I'm not sure that all changes are in the patch file, but it's a good start point. You can also check current CVS HEAD to see the "final" version.
 
 
 
====================================
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 : address@hiddenr
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
 
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Jan Wester
Envoyé : jeudi 22 novembre 2007 18:11
À : lwip
Objet : [lwip-users] Closing after sent

Hi
Using lwip 1.1.2 with raw interface
I'm sending a file with lot of data and using callback routine tcp_sent, how can I verify if everything has been sent
before I close. I have try to close on end of my file, but it is to fast, It is still data in the buffers.
Shall I check the len parameter on the callback for tcp_sent or what ?  
 

Med vänlig hälsning/Best Regards
Jan Wester

_________________________________

WHI Konsult AB

Scheelegatan 11, 112 28 Stockholm, Sweden
www.whi.se
address@hidden
+46 8 449 05 30

 

reply via email to

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