> What does netstat -i show for the socket bound to port 8086?
> I would expect
> something like one of the WAIT states, meaning that the
> socket is hanging
> around waiting for all data to be exchanged and for both ends
> of the connection
> to "agree" on the closure of the connection.
>
> Interestingly, Solaris appears to support a socket option
> called SO_REUSEADDR
> where a socket is allowed to bind to a port as long as the
> remote address
> involved in a connection is different.
>
> Paul

Hey Paul, great suggestion, I think you win the prize.  Here's a bunch
of netstats taken roughly a second apart.  The TIME_WAIT socket was
opened to send a single GIF to my browser.  I closed the browser to
make sure it wasn't keeping it open but the socket stayed open.  When
the LISTEN socket closes because of "./AppServer close", you'll notice
the TIME_WAIT socket stays open for roughly 15 seconds.  This is
what's causing the trouble.  Also, the second part of the problem,
maybe the real problem, is when trying to start the second instance of
AppServer, it detects the bind failure ok but then hangs as it tries
to exit, requiring a kill -9 to end it.  Sounds like a thread won't
die or something.


> netstat | grep 8086
> netstat | grep 8086
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
tcp4       0      0  localhost.8086         *.*
LISTEN
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
tcp4       0      0  localhost.1723         localhost.8086
TIME_WAIT
> netstat | grep 8086
> netstat | grep 8086
> netstat | grep 8086


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to