fixes bug 177326 "Mozilla rapidly repeats requests multiple times"

r=dougt sr=rpotts a=roc+moz
This commit is contained in:
darin%netscape.com 2002-11-01 01:11:32 +00:00
parent b35e7ab8e5
commit 48fdab4878

View File

@ -882,10 +882,17 @@ nsHttpTransaction::Read(char *buf, PRUint32 count, PRUint32 *bytesWritten)
// read some data from our source and put it in the given buf
rv = mSource->Read(buf, count, bytesWritten);
LOG(("mSource->Read [rv=%x count=%u countRead=%u]\n", rv, count, *bytesWritten));
if (NS_FAILED(rv)) {
// detect explicit socket RESET
if (rv == NS_ERROR_NET_RESET) {
LOG(("got NS_ERROR_NET_RESET\n"));
*bytesWritten = 0;
}
else if (NS_FAILED(rv)) {
LOG(("nsHttpTransaction: mSource->Read() returned [rv=%x]\n", rv));
return rv;
}
if (*bytesWritten == 0) {
LOG(("nsHttpTransaction: reached EOF\n"));
if (!mHaveStatusLine) {