lwip-users
[Top][All Lists]
Advanced

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

Re: RE [lwip-users] : RE : RE : RE : managing storage problems.


From: shai katzir
Subject: Re: RE [lwip-users] : RE : RE : RE : managing storage problems.
Date: Wed, 31 Oct 2007 00:49:16 -0700 (PDT)


finally, I decided to give the sys_mbox_post function a success boolean
return as discussed and it worked just fine. 
still, i only added checks for udp receving and raw receive . the problem is
that when the post fails, 
there has to be some error handling and reverse actions before giving up on
posting.
for example, in the tcp receive, before posting the packet to the recvmbox,
there are updates to the pcb and "tcp_update", this updastes should be
removed. I wasn't sure how to remove then and therefore i neglected the tcp
check for failed posting. 
Moreover, in the udp receive, before posting the packet to the recvmbox
there's a call to the conn callback, the process done in the callback should
be reversed too , but again, I didn't know what changes have been done.
Can I move the callbacks to be done after a successfull posting, or there is
a problem doing that in a multithreaded system ( where the fetch could be
done before the callback executes)?

shai

-- 
View this message in context: 
http://www.nabble.com/managing-storage-problems.-tf4716993.html#a13504357
Sent from the lwip-users mailing list archive at Nabble.com.





reply via email to

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