faye/faye — pull request #126 by vihai (2012-02-16 17:03:54+00:00)
Title: Make :max_nesting configurabile and be more verbose when exceeded

Hello, I was experiencing quiet failures sending complex messages through faye because JSON parses has a limit on the maximum depth.

I thus added a configuration parameter that lets the user configure it while instantiating the parser. I also changed the default exception handler to be more verbose when debugging is activated and differentiate between JSON parsing errors and other exceptions.