HP-UX Programmer's Guide for Java 2

Table Of Contents
Closing a socket when accept or read is pending (PA-RISC)
The java command-line option -XdoCloseWithReadPending allows one thread to
close() a socket when there is an outstanding read pending on that same socket from
another thread. The default behavior when close() is called on a socket which has
an outstanding read call from another thread is for the close() to block until the read
call completes. With the -XdoCloseWithReadPending option, the socket close()
call closes the socket and, in the context of the thread with the pending read, a Socket
Exception with the message "Socket closed" is thrown.
In some versions of the VM, changes were made to the mechanism by which a socket
is closed, and in those versions you no longer need to use the
-XdoCloseWithReadPending option to close the socket close() call.
However, HP-UX patches are necessary for some PA-RISC versions. Please refer to the
table below that describes whether HP-UX patches are needed for your Java™ version
and PA-RISC operating system, and whether the flag needs to be used.
For HP Integrity systems, no flag and no HP-UX patches are required.
JVM Flags RequiredHP-UX Patches
Required
HP-UX
Version
ArchitectureJava™ SDK
Version
NoneNone11.11 and 11.23PA-RISC 2.05.0
-XdoCloseWithReadPending
None11.0 and 11.11PA-RISC1.4.2.00 & 1.4.2.01
NoneNone11.23
NoneNone11.0PA-RISC1.4.2.02 through
1.4.2.05
11.11
11.23
NoneNone11.0PA-RISC1.4.2.06 & 1.4.2.07
NonePHKL_3245711.11
PHKL_25840
PHKL_25842
PHNE_25644
PHNE_25084
NoneNone11.23
-XdoCloseWithReadPending
None11.00
11.11
PA-RISC1.3.1.00 & 1.3.1.01
NoneNone11.23
NonePHNE_2672811.00PA-RISC1.3.1.02
PHNE_27063
Closing a socket when accept or read is pending (PA-RISC) 11