// committed, so we can't try and set headers.
if(keepAlive && !error) { // Avoid checking twice.
error = response.getErrorException() != null ||
- statusDropsConnection(response.getStatus());
+ (!isAsync() &&
+ statusDropsConnection(response.getStatus()));
}
} catch (InterruptedIOException e) {
error = true;
// committed, so we can't try and set headers.
if(keepAlive && !error) { // Avoid checking twice.
error = response.getErrorException() != null ||
- statusDropsConnection(response.getStatus());
+ (!isAsync() &&
+ statusDropsConnection(response.getStatus()));
}
// Comet support
SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector());
// committed, so we can't try and set headers.
if(keepAlive && !error) { // Avoid checking twice.
error = response.getErrorException() != null ||
- statusDropsConnection(response.getStatus());
+ (!isAsync() &&
+ statusDropsConnection(response.getStatus()));
}
} catch (InterruptedIOException e) {