Skip to content

Commit

Permalink
[XrdCl] Be more defensive when marking SID as t/o.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 8566f31 commit b2b39dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/XrdCl/XrdClXRootDMsgHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,9 @@ namespace XrdCl
if( pTimeoutFence.load( std::memory_order_relaxed ) )
return 0;

if( event == Timeout && pMsgInFly && pSidMgr )
if( pSidMgr && pMsgInFly && ( event == Timeout
|| status.code == errOperationExpired
|| status.code == errOperationInterrupted ) )
{
ClientRequest *req = (ClientRequest *)pRequest->GetBuffer();
pSidMgr->TimeOutSID( req->header.streamid );
Expand Down

0 comments on commit b2b39dd

Please sign in to comment.