problem with sockets on different platforms

I have a GUI/code that sets up and acts as server for my and GUI/code that sets up and acts as a client to my server.

I've set it up so that if the server goes away unexpectedly, the client code should catch the SocketException thrown and handle itself accordingly. This works great on my NT running version 1.3. However, when I run the same code on Irix 5.10d (with SGI's java version 1.3) my client has no idea the server goes away. Is the exception not being thrown on the different system? Is there something I need to look for to throw and catch the proper exceptions?

Any help would be awesome! Thanks!

[638 byte] By [virelay] at [2007-9-26 4:21:15]
# 1

Hi,

is it right that your client has a blocking read operation open for any response from the server? If that's the case, the read operation will be executed and the length of the received data - that's the returncode of the read operation - will be -1. Normally to check this out will be a good method to find out when the other side of the connection goes away.

Regards

Mikno

Mikno at 2007-6-29 17:25:15 > top of Java-index,Desktop,Runtime Environment...
# 2
Thanks!
virelay at 2007-6-29 17:25:15 > top of Java-index,Desktop,Runtime Environment...