{"comment":{"created_at":"2011-10-26T18:47:29Z","body":"I'm going to mark this as low-priority because of the OS support. We'll revisit after 0.6 drops.","updated_at":"2011-10-26T18:47:29Z","url":"https://api.github.com/repos/joyent/node/issues/comments/2534420","id":2534420,"user":{"avatar_url":"https://secure.gravatar.com/avatar/83a1a74c2e61c5d14347a1c56d3e27f9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"83a1a74c2e61c5d14347a1c56d3e27f9","url":"https://api.github.com/users/sh1mmer","id":37673,"login":"sh1mmer"}},"action":"created","issue":{"number":1496,"created_at":"2011-08-11T21:16:52Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"The backlog parameter was removed from the HTTP module (or more likely form Net, and inherited by HTTP) some time before Node.js v2 in favor of a hard-coded value of 128.\r\n\r\nIn terms of load handling, this value limits the maximum size of the listen queue for the server's socket. On BSD systems, `netstat -Lan` shows the queue status of all sockets in the LISTEN state. Node will limit it's queue size to 128 even if the OS limit is larger. This cause BSD and Windos (Cygwin) OSs (and possibly some Linux systems) to begin to reset incoming TCP requests at loads as low as 4000 requests/second. Not so good for your dreams of a C10K web application...\r\n\r\n**Workaround:**\r\n```\r\nvar server = require('http').createServer( . . . );\r\nserver._backlog = 1024; \r\nserver.listen(8000);\r\n```\r\nThe code above works because the net_uv.js module passes the entire Net (or HTTP) object to it's internal wrapper for the listen method of `process.binding('tcp_wrap').TCP`. Either adding (and documenting) a setter in the HTTP.Server module, or  doing [this](https://github.com/joyent/node/pull/1495), could alleviate a great deal of suffering for future developers. ","comments":3,"title":"'hard' backlog limit of 128","updated_at":"2011-10-26T18:47:29Z","url":"https://api.github.com/repos/joyent/node/issues/1496","id":1390675,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c120d02bacdeaab56fdf9795c449d39c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c120d02bacdeaab56fdf9795c449d39c","url":"https://api.github.com/users/jmanero","id":974670,"login":"jmanero"},"html_url":"https://github.com/joyent/node/issues/1496","labels":[{"name":"low-priority","url":"https://api.github.com/repos/joyent/node/labels/low-priority","color":"02d7e1"},{"name":"net","url":"https://api.github.com/repos/joyent/node/labels/net","color":"e10c02"}],"state":"open"},"legacy":{"issue_id":1390675,"comment_id":2534420}}