cvs commit: src/sys/netinet in_pcb.c tcp_subr.c tcp_timer.c
silby at silby.com
Wed Sep 6 22:20:38 PDT 2006
On Wed, 6 Sep 2006, Gleb Smirnoff wrote:
> Another simple enough solution would be to msleep() with tcbinfo mutex
> temporarily dropped if we fail to find a port. Then the tcp_timer_2msl_tw()
> on the next run will free tcptw entries and wake up us.
Nah, not worth the effort. time_wait sockets are good to try to follow
the rules on, but if the choice is to delay or throw away one prematurely,
throwing one away prematurely is the better choice.
> Anyway, I'm strongly against doing the purge cycling in the syscalls.
Yep, me too - doing purge cycling was never my intent; it was just
supposed to be a last ditch attempt to free a time_wait socket that was
taking up an ephemeral port when no ephemeral ports were left.
Mike "Silby" Silbersack
More information about the cvs-src