[xSocket-develop] graceful shutdown
Status: Inactive
Brought to you by:
grro
|
From: Brad M. <br...@br...> - 2010-04-15 22:50:58
|
Hi Guys, Firstly, I'd like to say what really great technology xsocket is, it makes it very easy to do very cool things :) I'm having a problem getting xsocket to shutdown gracefully. I'm starting the server with ConnectionUtils.start( server ), and when the application is shutdown i'm calling server.close(). But the port continues to be in use so i can't restart my application - even after the java process has gone (which i didnt think was possible). Its very strange. I have to wait between 1 and 5 minutes before the socket becomes free and i can start the application again. This problem only seems to happen on my server which is running linux 2.6.16. There are no other process using that port (confirmed with netstat) Any ideas? Thanks, Brad |