Skip to content

Conversation

@AntonZaets
Copy link

Problem statement:

Request handler start linked process, which is finishing with exit(Reason). In such case the function clause for error handling will never be called and default clause will be called instead. This causes hanging of cowboy.

The typical situation is starting gen_server from request handler. If gen_server returns {stop, Reason} after error in initialisation then otp calls exit(Reason) internally.

The solution:
New info clause for error without stacktrace.

@motobob please, take a look.

…process

Problem statement:
Request handler start linked process, which is finishing with exit(Reason).
In such case the `info` function clause for error handling will never be called
and default clause will be called instead. This causes hanging of cowboy.
The typical situation is starting gen_server from request handler.
If gen_server returns {stop, Reason} after error in initialisation
then otp calls `exit(Reason)` internally.
The solution:
New `info` clause for error without stacktrace.
@motobob
Copy link

motobob commented Dec 27, 2017

let's review other alternatives before we merge

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants