Print

Print


Hi @abh3 and @bbockelm ,

I have an idea on how to implement it and I would like your feedback before proceeding ;)

This feature is needed for the HTTP TPC Pull side. If possible, I would like this to be included in the new XRootD release that will be done end of this week :)

I looked at the code and the problem is that before opening the file on the destination machine (the one that pulls), we do not have the size of the file from the source server.

I was thinking that we can do a HEAD query against the Source machine before opening the file locally. Once we get the "Content-Length" value from this query, we can then append to the file-to-open opaque infos the file size with oss.asize=<value>.

This code will be located after this line: https://github.com/xrootd/xrootd/blob/master/src/XrdTpc/XrdTpcTPC.cc#L940,
something like uint64_t contentLength = GetContentLength(); and pass this contentLength value to the OpenWaitStall() method.

What do you think ?

Thanks in advance !
Cedric


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1754/1276207568@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1754#issuecomment-1276207568", "url": "https://github.com/xrootd/xrootd/issues/1754#issuecomment-1276207568", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1