Skip to content

Conversation

@tpett
Copy link

@tpett tpett commented Jun 7, 2011

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