setSoTimeout() returns -1 for secure sockets

Hi All,

I am having a client app which creates a secure socket connection with the server.

Then does a setSoTimeout(90000) and starts reading.

When the timeout happens, I would expect a InterruptedIOException to be thrown but instead I receive a -1 which is not as specified in the API doc.

If I create non-secure or normal socket connection, I am able to get to the InterruptedIOException on the timeout.

Pls help if anybody has encountered this kind of problem.

Thanks,

Alagiri

[528 byte] By [Alagiri_Srinivasana] at [2007-10-1 1:09:21]
# 1

Hi All,

The problem I had mentioned above looks to be only for Java 1.3.1.

When I tried the same app with Java 1.4, everything seems to be fine (i.e) InterruptedIOException is thrown.

Having said this, I do not have any workaround for 1.3.1.

Has anybody worked around this issue in Java 1.3.1?

Thanks

Alagiri

Alagiri_Srinivasana at 2007-7-8 1:26:35 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...