360051 SocketConnectionTest.testServerClosedConnection is excluded.

Strengthened condition under which the handling is aborted due to a remote close: now checking also if the endpoint has been closed locally.
This commit is contained in:
Simone Bordet 2011-10-06 21:30:03 +02:00
parent 9ac4e35b96
commit 074722f8c7
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ public class HttpConnection extends AbstractConnection implements Dumpable
long filled = _parser.parseAvailable();
io += filled;
if (_parser.isIdle() && _endp.isInputShutdown())
if (_parser.isIdle() && (_endp.isInputShutdown() || !_endp.isOpen()))
throw new EOFException();
}