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

retriable if content length missmatched #59

Merged
merged 6 commits into from
Jul 29, 2015

Conversation

takkanm
Copy link
Contributor

@takkanm takkanm commented Jul 28, 2015

It occures by combination OpenSSL raise EOFError and use
MessagePack::Unpacker.
Therefore, if the size of the body is less than the content length,
raise retryable error.

@nahi
Copy link
Member

nahi commented Jul 28, 2015

LGTM! Good catch!

It occures by combination OpenSSL raise EOFError and use
MessagePack::Unpacker.
Therefore, if the size of the body is less than the content length,
raise retryable error.
@takkanm takkanm force-pushed the retriable_msgpack_close_by_openssl_eoferror branch from 47920e3 to 56cca61 Compare July 28, 2015 07:41
@takkanm
Copy link
Contributor Author

takkanm commented Jul 29, 2015

It was supported to call of Net::Http# request() with block.

In addition, it was made so as to rescue the IncompleteError, but It seems to not be retried when call with block.
https://github.com/treasure-data/td-client-ruby/pull/59/files#diff-a6ddea27a85b9d434ec8dc459345186fL329

@nahi
Copy link
Member

nahi commented Jul 29, 2015

LGTM!

takkanm added a commit that referenced this pull request Jul 29, 2015
…openssl_eoferror

retriable if content length missmatched
@takkanm takkanm merged commit 8d01f79 into master Jul 29, 2015
@takkanm takkanm deleted the retriable_msgpack_close_by_openssl_eoferror branch July 29, 2015 05:43
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.

None yet

2 participants