ernie icon indicating copy to clipboard operation
ernie copied to clipboard

Fixed server hang when BERT.decode fails

Open tpett opened this issue 13 years ago • 0 comments

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.

tpett avatar Jun 07 '11 17:06 tpett