Operating System - HP-UX
1823920 Members
3060 Online
109667 Solutions
New Discussion

Socket close in Java does not terminate pending read operations.

 
SOLVED
Go to solution
Patrick Volery
New Member

Socket close in Java does not terminate pending read operations.

I'm developing a server application that communicates over TCP/IP. On certain error conditions, the server closes the socket. I would expect pending reads on Socket InputStreams to terminate when the socket is closed. But nothing happens, the reads hang until the client application stopps.
I do experience this problem only, when the server is run on a HP JVM. On Windows everything works fine. Is that a bug of the HP JVM.
1 REPLY 1
Mike Stroyan
Honored Contributor
Solution

Re: Socket close in Java does not terminate pending read operations.