Skip to content

Commit

Permalink
[XrdCl] Release SIDs on PostMaster::Send() failure.
Browse files Browse the repository at this point in the history
Make sure SIDs are release if PostMaster::Send() returns an error (e.g.
due to problems with establishing the physical connection).
  • Loading branch information
simonmichal committed Apr 17, 2018
1 parent 7818980 commit d1c76f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/XrdCl/XrdClMessageUtils.cc
Expand Up @@ -116,6 +116,9 @@ namespace XrdCl
log->Error( XRootDMsg, "[%s] Unable to send the message %s: %s",
url.GetHostId().c_str(), msg->GetDescription().c_str(),
st.ToString().c_str() );

// Release the SID as the request was never send
sidMgr->ReleaseSID( req->streamid );
delete msgHandler;
delete list;
return st;
Expand Down

0 comments on commit d1c76f2

Please sign in to comment.