|
Re: netconn_delete and _recv not thread safe: msg#00029network.lwip.general
Krueger, Don wrote: >Jifl wrote: [snip]A packet, or a connection to a listening socket, may arrive in
It seems that you're right. After having thought I "fixed" the problem, it then showed itself up again a bit later. The problem I was having evidently wasn't what I had thought it was - the real problem was related to sys_arch_mbox_fetch being called with a timeout of 1. My OS does timeouts by providing absolute tick values for the kernel clock, not relative timeouts. A timeout of 1 can mean that a context swap can cause the timeout to appear to be in the past, which causes an immediate "timeout" failure. This means that not all messages in the mbox get removed before the mbox is deleted (I had been thinking that they must have just arrived). I'm now treating a timeout of 1 specially as if it were a poll, and so far all is well. Sorry for the false alarm. Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts ------["The best things in life aren't things."]------ Opinions==mine |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: netconn_delete and _recv not thread safe: 00029, Krueger, Don |
|---|---|
| Next by Date: | detect IP/UDP destination address: 00029, beach . dk-Re5JQEeQqe8AvxtiuMwx3w |
| Previous by Thread: | RE: netconn_delete and _recv not thread safei: 00029, Krueger, Don |
| Next by Thread: | beginners problem :/: 00029, Marcin Prusinski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |