Skip to content

Commit

Permalink
[XrdCl] Discard response if there is no matching MsgHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 4cded2c commit f846859
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/XrdCl/XrdClStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,19 @@ namespace XrdCl
return;
}

//--------------------------------------------------------------------------
// No handler, we cache and see what comes later
//--------------------------------------------------------------------------
Log *log = DefaultEnv::GetLog();
InMessageHelper &mh = pSubStreams[subStream]->inMsgHelper;

//--------------------------------------------------------------------------
// No handler, we discard the message ...
//--------------------------------------------------------------------------
if( !mh.handler )
{
log->Dump( PostMasterMsg, "[%s] Queuing received message: 0x%x.",
pStreamName.c_str(), msg.get() );
log->Dump( PostMasterMsg, "[%s] Discarding received message: 0x%x, no "
"MsgHandler found.", pStreamName.c_str(), msg.get() );

Job *job = new QueueIncMsgJob( *pIncomingQueue, std::move( msg ) );
pJobManager->QueueJob( job );
// Job *job = new QueueIncMsgJob( *pIncomingQueue, std::move( msg ) );
// pJobManager->QueueJob( job );
return;
}

Expand Down

0 comments on commit f846859

Please sign in to comment.