Skip to content

Fixed server hang when BERT.decode fails - #13

Open
tpett wants to merge 1 commit into
mojombo:masterfrom
tpett:bad_bert_fix
Open

tpett wants to merge 1 commit into
mojombo:masterfrom
tpett:bad_bert_fix

Conversation

@tpett

@tpett tpett commented Jun 7, 2011

Copy link
Copy Markdown

When the BERT portion of a BERP fails to decode correctly via BERT.decode in a Ruby handler the exception is not caught. This causes the Ruby handler to exit without notifying the erlang process which continues to wait indefinitely for a response. A few bad requests and all Ruby handlers are down until Ernie is restarted.

This (tested) patch wraps the decode process in a begin...end block rescuing any errors and returning them as expected by the protocol.

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.

1 participant