Fixed #341386 (Remote close not detected by HttpClient).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2938 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
6d4ec6a4bc
commit
cf09f69e53
|
@ -18,6 +18,7 @@ jetty-7.3.2-SNAPSHOT
|
||||||
+ 341206 Stop order is wrong in HandlerWrapper
|
+ 341206 Stop order is wrong in HandlerWrapper
|
||||||
+ 341255 org.eclipse.http usage in AJP/SessionId linkage
|
+ 341255 org.eclipse.http usage in AJP/SessionId linkage
|
||||||
+ Added extra session removal test
|
+ Added extra session removal test
|
||||||
|
+ 341386 Remote close not detected by HttpClient
|
||||||
|
|
||||||
jetty-7.3.1.v20110307 7 March 2011
|
jetty-7.3.1.v20110307 7 March 2011
|
||||||
+ 316382 Support a more strict SSL option with certificates
|
+ 316382 Support a more strict SSL option with certificates
|
||||||
|
|
|
@ -175,14 +175,21 @@ public class HttpConnection /* extends AbstractConnection */ implements Connecti
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Hopefully just space?
|
long filled = _parser.fill();
|
||||||
_parser.fill();
|
if (filled < 0)
|
||||||
_parser.skipCRLF();
|
|
||||||
if (_parser.isMoreInBuffer())
|
|
||||||
{
|
{
|
||||||
Log.warn("Unexpected data received but no request sent");
|
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Hopefully just space?
|
||||||
|
_parser.skipCRLF();
|
||||||
|
if (_parser.isMoreInBuffer())
|
||||||
|
{
|
||||||
|
Log.warn("Unexpected data received but no request sent");
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue