Ok I see. Actually can client.env.EnvPut* modify any of the settings after the library is loaded? I know in the past I had to change some env vars prior to first load.

Now the script

from XRootD import client
import time

fs = client.FileSystem("localhost:9999")

tic = time.monotonic()
status, _ = fs.ping(1)
toc = time.monotonic()
print(f"Got status {status} in {toc-tic:.3f}s")

client.env.EnvPutInt("TimeoutResolution", 5)

tic = time.monotonic()
status, _ = fs.ping(1)
toc = time.monotonic()
print(f"Got status {status} in {toc-tic:.3f}s")

tic = time.monotonic()
status, _ = fs.ping(10)
toc = time.monotonic()
print(f"Got status {status} in {toc-tic:.3f}s")

returns

Got status [ERROR] Operation expired in 15.031s
Got status [ERROR] Operation expired in 15.050s
Got status [ERROR] Operation expired in 10.029s

so I'm not quite sure when it updates the var but it happens eventually


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/1735/1194320638@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1735#issuecomment-1194320638", "url": "https://github.com/xrootd/xrootd/issues/1735#issuecomment-1194320638", "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