Sockets...

Grant Edwards grante at visi.com
Wed May 9 13:14:24 EDT 2001


In article <kReK6.21$Dd5.7061 at ruti.visi.com>, Grant Edwards wrote:

>A particular port can't be reused for X seconds after it's
>closed (for security reasons).  

I should explain more precisely: it's so that if packets from
the old connection come straggling in after wandering around
the 'net for a while they don't interfere with the new
connection.  If you don't allow a port to be re-used for longer
than the maximum time it could take for a packet to get from A
to B, then that's not a problem.  I have a vague recollection
that there was a way that reusing a port immediately could be a
security problem, but I can't figure out what the scenario
would be.

-- 
Grant Edwards                   grante             Yow!  -- I can do
                                  at               ANYTHING... I can
                               visi.com            even... SHOPLIFT!!



More information about the Python-list mailing list