Skip to content

Commit

Permalink
[XrdCl] Make sure timed-out responses don't end up in the in-queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 473d4e9 commit 1078efb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XrdCl/XrdClXRootDMsgHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,12 @@ namespace XrdCl
if( pTimeoutFence.load( std::memory_order_relaxed ) )
return 0;

if( event == Timeout && pMsgInFly && pSidMgr )
{
ClientRequest *req = (ClientRequest *)pRequest->GetBuffer();
pSidMgr->TimeOutSID( req->header.streamid );
}

HandleError( status );
return RemoveHandler;
}
Expand Down

0 comments on commit 1078efb

Please sign in to comment.