Skip to content
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

removed timeouts on http_client when uploading. #85

Merged
merged 1 commit into from
Jan 20, 2013

Conversation

rojotek
Copy link
Contributor

@rojotek rojotek commented Dec 3, 2012

As per recommendations at https://github.com/nahi/httpclient, have set the send_timeout and receive_timeout to 0 when uploading large files:

LIMITATION:
          timeout occurs certainly when you send very large file and
          @send_timeout is default since HTTPClient::Session#query() assumes
          that all write are finished in @send_timeout sec not each write.
    
        WORKAROUND:
          increment @send_timeout and @receive_timeout or set @send_timeout and
          @receive_timeout to 0 not to be timeout.

As per recommendations at https://github.com/nahi/httpclient, have set the send_timeout and receive_timeout to 0 when uploading large files:

LIMITATION:
          timeout occurs certainly when you send very large file and
          @send_timeout is default since HTTPClient::Session#query() assumes
          that *all* write are finished in @send_timeout sec not each write.
    
        WORKAROUND:
          increment @send_timeout and @receive_timeout or set @send_timeout and
          @receive_timeout to 0 not to be timeout.
@rojotek
Copy link
Contributor Author

rojotek commented Dec 19, 2012

Hey Tom,

Just wondering if you've had a chance to look at this? Any chance of getting it merged in with a release? :) Anything I can do to help?

tomlea added a commit that referenced this pull request Jan 20, 2013
removed timeouts on http_client when uploading.
@tomlea tomlea merged commit a2e51ce into geminabox:master Jan 20, 2013
@tomlea
Copy link
Member

tomlea commented Jan 20, 2013

Sorry for the delay, I appear to be a caricature of a bad project maintainer.

@rojotek
Copy link
Contributor Author

rojotek commented Jan 21, 2013

:) no worries. Thanks for getting this pulled in. Very much appreciated.

@rojotek rojotek deleted the patch-1 branch January 21, 2013 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants