-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
large file upload times out #49
Comments
can you show the code you use instead? |
Sure.
|
i can also reproduce this issue when uploading large files. |
I'll take a look at this soon. Since I have code that works I believe I should be able to fix it. |
I notice that the difference is that I'm using verify=False and this is verify=True in pyclowder. This is set in connector (where it is set to True) and the default is True. Should we switch this to False, or just do False if the files are above some size? |
verify == FALSE means it does not test SSL certs, this is bad. This should only be used as a last resort in case you use self signed certs. |
OK. Will look into a better fix. |
@bingzhang how large of a file did you test and have it fail? Could you share it? |
something like 1 GB. |
OK. If I use my code above and put verify=True, a file that's 1.8 GB will upload. If i use then i get a timeout. There is
seeing if i can upload if i add value |
from https://requests.readthedocs.io/en/latest/user/quickstart/#timeouts:
So that means that we have not received a response from clowder for 5 seconds. Does this happen at the end of the upload or in the middle? |
I'm saying the middle based on the time. Uploading a 1.8 GB file (which I tried) took about 30 seconds. |
The pyclowder file upload will time out for large files.
To get around this, I used the api endpoint with requests instead. This might point towards a solution.
The text was updated successfully, but these errors were encountered: