mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 769264 pipeline logging cleanups r=honzab
--HG-- extra : rebase_source : fc747b84349096b70d8b75d8aff8626826380d81
This commit is contained in:
parent
e53fcede41
commit
653c98d763
@ -967,24 +967,23 @@ nsHttpConnection::ReadTimeoutTick(PRIntervalTime now)
|
||||
|
||||
PRUint32 pipelineDepth = mTransaction->PipelineDepth();
|
||||
|
||||
if (delta >= gHttpHandler->GetPipelineRescheduleTimeout()) {
|
||||
if (delta >= gHttpHandler->GetPipelineRescheduleTimeout() &&
|
||||
pipelineDepth > 1) {
|
||||
|
||||
// this just reschedules blocked transactions. no transaction
|
||||
// is aborted completely.
|
||||
LOG(("cancelling pipeline due to a %ums stall - depth %d\n",
|
||||
PR_IntervalToMilliseconds(delta), pipelineDepth));
|
||||
|
||||
if (pipelineDepth > 1) {
|
||||
nsHttpPipeline *pipeline = mTransaction->QueryPipeline();
|
||||
NS_ABORT_IF_FALSE(pipeline, "pipelinedepth > 1 without pipeline");
|
||||
// code this defensively for the moment and check for null in opt build
|
||||
// This will reschedule blocked members of the pipeline, but the
|
||||
// blocking transaction (i.e. response 0) will not be changed.
|
||||
if (pipeline) {
|
||||
pipeline->CancelPipeline(NS_ERROR_NET_TIMEOUT);
|
||||
LOG(("Rescheduling the head of line blocked members of a pipeline "
|
||||
"because reschedule-timeout idle interval exceeded"));
|
||||
}
|
||||
nsHttpPipeline *pipeline = mTransaction->QueryPipeline();
|
||||
NS_ABORT_IF_FALSE(pipeline, "pipelinedepth > 1 without pipeline");
|
||||
// code this defensively for the moment and check for null in opt build
|
||||
// This will reschedule blocked members of the pipeline, but the
|
||||
// blocking transaction (i.e. response 0) will not be changed.
|
||||
if (pipeline) {
|
||||
pipeline->CancelPipeline(NS_ERROR_NET_TIMEOUT);
|
||||
LOG(("Rescheduling the head of line blocked members of a pipeline "
|
||||
"because reschedule-timeout idle interval exceeded"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2861,7 +2861,7 @@ nsConnectionEntry::OnPipelineFeedbackInfo(
|
||||
|
||||
if (mPipelineState == PS_GREEN && info == GoodCompletedOK) {
|
||||
PRInt32 depth = data;
|
||||
LOG(("Transaction completed at pipeline depty of %d. Host = %s\n",
|
||||
LOG(("Transaction completed at pipeline depth of %d. Host = %s\n",
|
||||
depth, mConnInfo->Host()));
|
||||
|
||||
if (depth >= 3)
|
||||
|
Loading…
Reference in New Issue
Block a user