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.
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