TIME_WAIT and setReuseAddress (Java1.4)
TIME_WAIT and setReuseAddress (Java1.4)
- Subject: TIME_WAIT and setReuseAddress (Java1.4)
- From: Kaj Hejer <email@hidden>
- Date: Thu, 5 Dec 2002 17:20:32 +0100
Hi!
I'm aware that WO5.1/5.2 does not officially support java1.4 :) but anyway:
In java1.4 there is a method for letting more than one process connect to a
port:
java.net.ServerSocket.setReuseAddress
Some of our WO5.1 application on solaris get in TIME_WAIT state after they
have stopped to respond. Then we can't restart the application before the
port is released. Our deployment environment is WO5.1 on solaris.
I know there is some properties you can set with ndd on solaris to shorten
this time, but we would like to try to run java1.4 and try to set the
SO_REUSEADDR flag with setReuseAddress(true) to let more than one process
connect to the port at the same time. Then we can restart our apps
immediately and not need to wait for the port to be relased.
Does anyone here have any ideas to where (which hook to use) we should call
the setReuseAddress method? How do we get hold of the ServerSocket object?
...or any other ways of solving the TIME_WAIT issue.
TIA!
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.