I have two node servers as my backend servers with a haproxy server on the front to round robin incoming HTTP requests. The server with coffee works fine, but the server with the compiled coffeescript version written in JS blows up after several hours of being up. The coffee code and the compiled JS code look identical. When the JS version blows up it starts send 502 responses. These servers handle about 5 million requests/day(combined). Anyone seen this problem?
Maybe this isn't your problem, but I had the exact issue when using chained methods a certain way.
obj.method1 "param1"
.method2 "param2"
.exec (err, res) ->
...
vs
obj.method1("param1")
.method2("param2")
.exec (err, res) ->
...
I was using method #1 without issue until I compiled to JS, at which point it failed. I don't know the node/coffee versions but this answer may help someone.