Default to 2 second timeout for http servers
authorRyan Dahl <ry@tinyclouds.org>
Wed, 12 May 2010 18:42:01 +0000 (11:42 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 12 May 2010 18:49:28 +0000 (11:49 -0700)
commit7a2e6d674a94e01a17e856b4d51ec229fad9af51
tree792d3b46799a523954b42c75c74506e52abc5eed
parented0c109950bdd34ccfd1d3aaaa63e38b50d2097e
Default to 2 second timeout for http servers

Taking a performance hit on 'hello world' benchmark by enabling this by
default, but I think it's worth it. Hopefully we can improve performance by
resetting the timeout less often - ideally a 'hello world' benchmark would
only touch the one timer once - if it runs in less than 2 seconds. The rest
should be just link list manipulations.
lib/http.js
test/simple/test-http-set-timeout.js [moved from test/simple/test-net-set-timeout.js with 73% similarity]