diff options
author | Loïc Hoguin <[email protected]> | 2011-07-06 20:00:08 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-07-06 20:00:08 +0200 |
commit | aa0a66749e23fe8d29421794ce8ab173b062a311 (patch) | |
tree | 2c1a50f9c0ca4475495c5760be53fcf45294e71d /.gitignore | |
parent | 108a491f5515fdc2a7fe3ce8c310a261d6be3230 (diff) | |
download | cowboy-aa0a66749e23fe8d29421794ce8ab173b062a311.tar.gz cowboy-aa0a66749e23fe8d29421794ce8ab173b062a311.tar.bz2 cowboy-aa0a66749e23fe8d29421794ce8ab173b062a311.zip |
Move recursion out of a try .. catch block.
Fixes issue #31.
Recursion shouldn't happen in a single catch statement or inside
a try .. catch statement. The only safe construct for catching
exceptions and perform recursion when everything goes well is
to put the recursive call inside a try .. of .. catch construct
in the of .. catch block.
Otherwise the stack gets filled with exception-related information
since they can still be caught if we were to send them and unfold
the whole thing.
Thanks go to lpgauth for reporting the issue and people on IRC
for explaining the hows and whys.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions