[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE : [lwip-users] managing storage problems.
From: |
Frédéric BERNON |
Subject: |
RE : [lwip-users] managing storage problems. |
Date: |
Tue, 30 Oct 2007 09:58:50 +0100 |
This is a lwIP problem: you should never got a full mbox, due to the lwIP
design. But, mainly, when a mbox is full, this is the netconn::recvmbox, or the
tcpip.c::mbox (other mailboxes are used like "semaphores").
I will suppose you use last CVS HEAD. Since sys_mbox_post can't return an
error, the workaround (without changing lwIP code) should be to implement the
"free" inside your sys_mbox_post implementation. The main problem is to know
what kind of "free" to do:
- tcpip.c::mbox only contains pbuf
- netconn::recvmbox can contains netbuf for UDP/RAW netconn, and pbuf for TCP.
If you know the full mbox is always an UDP one, I think you can directly use
netbuf_delete on the pointer you have to post. It's not a clean solution, but
should work.
====================================
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
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de shai katzir
Envoyé : mardi 30 octobre 2007 09:13
À : address@hidden
Objet : [lwip-users] managing storage problems.
Hello,
I have a problem to deal with releasing packets when a receive mbox gets full.
In my case, i have a binded UDP socket which doesn't do receive, but a remote
computer keep sending packets to that socket. In this case, the receive mbox of
that socket gets filled quickly. But, the lwip does nothing to deal with it.
when the lwip does mbox_post it doesn't check if the mbox is full, and it
relies that the packet will be fetched in the future, and will be released then.
what can i do to free those packets once the mbox is full?
thanks,
shai
--
View this message in context:
http://www.nabble.com/managing-storage-problems.-tf4716993.html#a13484100
Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
- RE : [lwip-users] managing storage problems.,
Frédéric BERNON <=