You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to upload a large file, it reports the HttpClient timeout exception. After this failure, Github also lists the partial uploaded files with the whole file size - I think this is github issue. However, is it possible to disable the timeout exception. As you know, upload is normally a large file, that may take hours.
By the way, it looks your script only works with above ruby1.9.1. Can you put this on your README file.
Thanks your script.
The text was updated successfully, but these errors were encountered:
"However, is it possible to disable the timeout exception" - Can you tell me how to do this? The github uploader is working fine for me, unless it takes more than a couple of minutes to upload the file (the HTTPClient::SessionManager#send_timeout seems to default to 120s, but I'm lost as to how to change that from outside).
Oops, ignore me, I was going about it entirely backwards!
Instead of HTTPClient.post(...) when uploading, I needed to edit the script to use:
client = HTTPClient.new
client.send_timeout = 60 * 60 # Hour is enough, even if 2 minutes isn't. I get 2MB/minute, which limited me to < 4MB upload.
client.post(...)
When I try to upload a large file, it reports the HttpClient timeout exception. After this failure, Github also lists the partial uploaded files with the whole file size - I think this is github issue. However, is it possible to disable the timeout exception. As you know, upload is normally a large file, that may take hours.
By the way, it looks your script only works with above ruby1.9.1. Can you put this on your README file.
Thanks your script.
The text was updated successfully, but these errors were encountered: