Created
May 1, 2012 22:25
-
-
Save mranney/2571958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // work around a bug in node's TLS where error events are sometimes leaking out and turning into exceptions | |
| req.on("error", function (err) { | |
| warn("exception debug", "caught error event on req: " + err); | |
| }); | |
| if (! req.socket.voxer_error_flag) { | |
| req.socket.on("error", function (err) {}); | |
| if (req.socket.socket) { | |
| req.socket.socket.on("error", function (err) {}); | |
| } | |
| req.socket.voxer_error_flag = true; | |
| } | |
| // end of annoying workaround that I hope gets fixed at some point | |
| // |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment