Name: rlT66838 Date: 08/15/97
This is the code that performs the interrupt():
server.interrupt();
synchronized(sock) {
try {
sock.close();
}
catch(Exception e) {
System.err.println("Error Closing Socket");
}
}
This is the code that it's interrupting:
try {
synchronized(sock) {
while(true) {
if(!gateways.empty())
gateway = (HTTPGateway)gateways.remove();
else {
gateway = new HTTPGateway(this, kernel, props, keepalive, linger, timeout);
gateway.queueConnection();
}
gateway.init(sock.accept());
}
}
}
catch(Exception e) {
System.err.println("Service Interrupted");
}
The interrupt should always be happening in the sock.accept()
statement but it doesn't.
======================================================================
- duplicates
-
JDK-4066000 Interruption fails with SocketInputStreams
- Closed
-
JDK-4154947 JDK 1.1.6, 1.2/Windows NT: Interrupting a thread blocked does not unblock IO
- Closed