Skip to content

Is TimeOut handled in getFile API? #6289

Answered by chaen
panta-123 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry I missed that question.
There is indeed no parameters you can pass. I'd have to see how intrusive it is to add one, but I am not against per se.

There is however at the moment a transfer timeout which is estimated:

def _estimateTransferTimeout(self, fileSize):
"""Dark magic to estimate the timeout for a transfer
The values are set empirically and seem to work fine.
They were evaluated with gfal1 and SRM.
:param fileSize: size of the file in bytes we want to transfer
:return: timeout in seconds
"""
return int(fileSize / self.MIN_BANDW…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@panta-123
Comment options

Comment options

You must be logged in to vote
2 replies
@iueda
Comment options

@chaen
Comment options

Answer selected by fstagni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants