bug 749839 - apply unexpected server read test only to http pconns r=jduell

This commit is contained in:
Patrick McManus 2012-05-03 09:10:11 -04:00
parent ed885d50a9
commit 8673c38cdf

View File

@ -581,7 +581,7 @@ nsHttpConnection::CanReuse()
// path is more expensive than just closing the socket now.
PRUint32 dataSize;
if (canReuse && mSocketIn && !mUsingSpdy &&
if (canReuse && mSocketIn && !mUsingSpdy && mHttp1xTransactionCount &&
NS_SUCCEEDED(mSocketIn->Available(&dataSize)) && dataSize) {
LOG(("nsHttpConnection::CanReuse %p %s"
"Socket not reusable because read data pending (%d) on it.\n",