ignore exceptions on Websocket dispatch parsing#156
ignore exceptions on Websocket dispatch parsing#156arBmind wants to merge 1 commit intoguard:masterfrom
Conversation
|
I can't accept that patch - especially not the empty rescue. Also, for handling an error like this, a test case is needed - so what data did you get that caused the error? |
|
My setup:
Experience:
As I said it's a hack, but it allows me to use this reliably. That parsing of user input may fail is not really an exception - it should be expected. At least not one that should crash the service. There is no error handling code in this file, so I went the lazy route. |
|
The most frustrating issues are when something doesn't work and there's no error. Especially for users who aren't savvy enough to debug web sockets, etc. Any error handling would have to be covered by specs, so it's best to use a real-life scenario. This includes testing for error messages properly shown. Also, It's better to catch specific exceptions instead of all exceptions - and given most livereload users are designers, it's fair to "reinterpret" exceptions to tell people what could be wrong and how to fix it. So what is the exact input you're getting that's causing the failure? Why is such an error "normal"? If I can't reproduce the problem, there's a high chance this will either be a back-and-forth between you and me, or, many users will get very frustrated by "reloading not working" and us having no output to find the cause. At least paste the data causing the failure - adapt it to prevent it having sensitive info if needed. |
I've catched it and described in #179. I agree that we should not just add an empty But the situation is terrible for me as developer for different devices. |
For me this kept crasching in the HTTP::parser.
This hack makes this module usable for me.