[squeak-dev] Closing a socket for port re-use - dumb question

Bill Schwab BSchwab at anest.ufl.edu
Sat Mar 1 00:38:13 UTC 2008


Andreas, Randal,

=====================================
Randal wrote:

Not sure in the windows world, but by design, sockets closed are held
closed for two minutes in case late packets arrive. If you don't care
about that you can set "socket reuse" on the socket before you close it.
*---------------------------------------------------------------------

By that, do you mean something like "socket setOption: 'SO_REUSEADDR' value: true." that I just found in the image?  There is also an SO_REUSEPORT which is probably more what I want.  I will read up on them shortly.

Of course, there is Andreas' example which appears to suggest that there is no problem.  All I remember is that I had problems, got conflicting advice, and ultimately found ephemeral ports solved my immediate (at the time) problem at the expense of some work and firewall hassles.  I suspect the reuse options are the answer.

Thanks for the pointers!!!

Bill




Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: bschwab at anest.ufl.edu
Tel: (352) 846-1285
FAX: (352) 392-7029





More information about the Squeak-dev mailing list