Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Handle errors from before_request/after_request #95

Merged
merged 4 commits into from
Nov 24, 2015

Conversation

iilyak
Copy link
Contributor

@iilyak iilyak commented Nov 18, 2015

This refactoring fixes the handling of errors from before_request.
Unify how we deal with errors among before_request and handle_request.

This refactoring fixes the handling of errors from before_request.
Unify how we deal with errors among before_request and handle_request.
{exit, normal, [{mochiweb_request, send, _, _} | _]} ->
exit(normal); % Client disconnect (R15+)
{exit, normal, [{mochiweb_request, send, _} | _]} ->
exit(normal); % Client disconnect (R14)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop this clause with the light on heart like we dropped R14 support.

@kxepal
Copy link
Member

kxepal commented Nov 18, 2015

Looks good for me, need to check however.

@kxepal
Copy link
Member

kxepal commented Nov 24, 2015

Nice! +1

@asfgit asfgit merged commit 7dcf127 into apache:master Nov 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants