lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #6865] SO_REUSEADDR for TCP


From: Jeff Barber
Subject: [lwip-devel] [patch #6865] SO_REUSEADDR for TCP
Date: Thu, 27 Aug 2009 02:22:47 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

Follow-up Comment #5, patch #6865 (project lwip):

The only way I think that could happen (concurrent transfers with different
endpoints bound to the same local port) is when a listening endpoint accepts
two different connection requests.  In that case, both derive from the same
listening endpoint but the two are distinguishable because the *remote*
address/port is unique in each.

I don't think any platform allows multiple callers to bind different
endpoints to the same address/port combination.

The patch only allows the reuse of the port if the existing PCB using it is
already "dead".  (It's hanging around in TIME_WAIT only for the unusual cases
where the last ACK got lost or there is a duplicate stale packet wandering
around the net.)


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6865>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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