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

Fixed up crash when setting options to closed sockets. #152

Closed
wants to merge 1 commit into from

Conversation

jasonjli
Copy link

Setting options to closed sockets will crash the Erlang process. This actually happens often as sockets can close at any time. We observed this in our servers that identifies a bad match, where it expects the ok but gets {error, closed}.

The changes in this commit allows the process to exit gracefully instead.

Setting options to closed sockets will crash the program. The changes
in this commit allows the program to exit gracefully instead.
etrepum added a commit that referenced this pull request Feb 21, 2015
@etrepum
Copy link
Member

etrepum commented Feb 21, 2015

I've fixed this more systematically. Thanks! 👍

@etrepum etrepum closed this Feb 21, 2015
jasonjli pushed a commit to jasonjli/mochiweb that referenced this pull request Jul 24, 2015
Conflicts:
	src/mochiweb_http.erl
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