No exception is thrown when my server socket dies

I have a server application running on sunOS 5.7.

To this I have both Windows and SunOS clients connected via TCP/IP. (Server built with jdk 1.2.2 and client with 1.3.0)

If the Server socket dies an exception is thrown in the windows clients but not in the sunOS client.

I need the exception to be thrown in the sunOS as well.

Is there anybody who knows how to get this done?

Thanks in advance.

/Henrik

[452 byte] By [henbli] at [2007-9-26 5:23:02]
# 1

You could poll the connection to see if its there.

If you want the client to register the event then have your client create a sort of listener of your own when it connects. By 'sort of listener' I mean extend the thread class and have it check the connection is not null every n seconds. If it is null then raise the exception yourself.

Would this do it?

Rob.

ted_trippin at 2007-6-29 19:29:37 > top of Java-index,Archived Forums,Java Programming...
# 2
Not quite,I have allready done a work-around where I poll the socket, but I need to get the message without delay.../Henrik
henbli at 2007-6-29 19:29:37 > top of Java-index,Archived Forums,Java Programming...
# 3
I've read that there are some related bugs fixed in 1.3, is there any reason why you cant use 1.3 for your server as well?
ted_trippin at 2007-6-29 19:29:37 > top of Java-index,Archived Forums,Java Programming...
# 4
I am already using jdk 1.3 in my client, where I have my problems...
henbli at 2007-6-29 19:29:37 > top of Java-index,Archived Forums,Java Programming...