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 in TCP


From: Frédéric BERNON
Subject: RE : [lwip-users] Problem with lwip_close in TCP
Date: Tue, 13 Jun 2006 17:42:23 +0200

Hi Christiaan,

You're right, this is the same problem. I will study this issue, because I want 
to keep the BSD compatibility. Perhaps adding "somewhere" a tcp_output call? I 
will tell you.

In a general way, how to contrib to Lwip? The only document I see was about 
coding conventions. 

I have integrate to lwip1.1.1 the steve reynolds code for IGMP with several 
corrections. I also add a sock_init() function to initialize sockets.c 
semaphores like other _init() functions. And I add a DNS client to lwip to 
provide "BSD like" gethostby... functions.

I'm also interested about a SNMP agent for my product. Do you intend to add it 
to the stack? 

Thank you for the information.
  
====================================
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@hidden 
Web Site : http://www.hymatom.fr 
====================================


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Christiaan Simons
Envoyé : mardi 13 juin 2006 16:26
À : Mailing list for lwIP users
Objet : Re: [lwip-users] Problem with lwip_close in TCP


Hi Frédéric,

> After using this code to send my document, I do a lwip_close on my 
> socket. The problem is that all my data is not sent if I don't do a 
> "sleep" between my "Send" call, and the lwip_close. With a 10ms 
> "sleep" before the lwip_close, all my datas is received. It seems that 
> all "enqueued" tcp datas are dropped when I do the lwip_close.

I think this is related to 
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15926
since the socket layer builds upon the netconn layer.

Since the netconn_close() is broken (by design),
the socket close() is probably broken as well.

I'm only doing very minor bugfixing on this code,
since I'm not the author. I've placed this in
the CHANGELOG todo list as well, since this will take
a lot of work to get it right.

Currently I'm working on a "raw API" SNMP agent
so I don't have time to work on the sockets.

For now I strongly discourage the use of both
the socket and netconn API. If possible try
to use the raw API, this is a little harder to
program but it gives the best performance and stability.

A crude example of this is in contrib/ports/unix/proj/minimal, and there is a 
short intro in doc/rawapi.txt

Some users created their own private socket
implementations but none of these seem to have
made it into our contrib or lwip tree. :-(

Christiaan Simons

Hardware Designer
Axon Digital Design

+31 (0)13 511 66 66
+31 (0)13 511 41 51

http://www.axon.tv



_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users




reply via email to

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