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

Cancel a request if an error response is seen early #92

Open
GoogleCodeExporter opened this issue May 27, 2015 · 2 comments
Open

Cancel a request if an error response is seen early #92

GoogleCodeExporter opened this issue May 27, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

While talking with breser about error handling on the server for PUT requests, 
I thought of something cool we could do:

Consider a 1 gigabyte PUT request, and *while* we are transferring that data, a 
500 response comes back. If we're using a chunked request, then we could simply 
terminate the request.

(if the request is using C-L, then we'd need to finish the request, or close 
the connection mid-request)

Not exactly sure how to implement this within serf's model. Somehow, the 
chunk_bucket needs to learn of the error and terminate the request stream.

Original issue reported on code.google.com by gstein on 14 Nov 2012 at 6:34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant