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.
======================================================================