lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] [PATCH] Fix a racing codition in tcp_output()


From: Simon Goldschmidt
Subject: Re: [lwip-users] [PATCH] Fix a racing codition in tcp_output()
Date: Tue, 14 Apr 2009 09:19:40 +0200

Things like this are normally better put into a bug report on savannah to 
prevent them getting lost between all the other mails on this list.

> Sending a segment before it is added to the unacked list may result
> a racing problem when it's ack is received before it got added to the
> list.

How could that happen? Keep in mind that only one thread at a time may be in 
the lwIP core code (timers are also executed in that thread when it's idle). As 
far as I know there can be *no* racing conditions since only one thread may be 
active! So it does not matter if the packet is first sent or first put on the 
queue, the response packet will not be processed before tcp_output returns, 
anyway.

Simon
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a




reply via email to

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