cms-sw / cmssw

CMS Offline Software
http://cms-sw.github.io/
Apache License 2.0
1.07k stars 4.28k forks source link

Retrieve socket connection from XrdStorageMaker #36957

Open 4quarks opened 2 years ago

4quarks commented 2 years ago

Hi!

We are currently working in the enhancement of the XrdAdaptor logs. We need to retrieve an object with the socket information so we can show the endpoint used to access data. For example: Data was accessed at 174.65.98.3:67543

  1. locations->At(i).GetAddress() https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClXRootDResponses.hh#L86 Result: edm::LogWarning("XrdAdaptor") << "Connection established at: " <<m_fs.locations->At(0).GetAddress(); We know that m_fs doesn't have any attribute called neither locations nor pSubStreams (that would be too easy). It's just to exemplify what we want to obtain.

Thanks!

cmsbuild commented 2 years ago

A new Issue was created by @4quarks 4Quarks.

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

makortel commented 2 years ago

assign core

cmsbuild commented 2 years ago

New categories assigned: core

@Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

makortel commented 2 years ago

Hi @bbockelm, would you be able to answer to this question?