{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/1802","labels_url":"https://api.github.com/repos/joyent/node/issues/1802/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/1802/comments","events_url":"https://api.github.com/repos/joyent/node/issues/1802/events","html_url":"https://github.com/joyent/node/issues/1802","id":1779872,"number":1802,"title":"http.ServerResponse#writeFile","user":{"login":"networkimprov","id":458838,"avatar_url":"https://avatars.githubusercontent.com/u/458838?v=3","gravatar_id":"","url":"https://api.github.com/users/networkimprov","html_url":"https://github.com/networkimprov","followers_url":"https://api.github.com/users/networkimprov/followers","following_url":"https://api.github.com/users/networkimprov/following{/other_user}","gists_url":"https://api.github.com/users/networkimprov/gists{/gist_id}","starred_url":"https://api.github.com/users/networkimprov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networkimprov/subscriptions","organizations_url":"https://api.github.com/users/networkimprov/orgs","repos_url":"https://api.github.com/users/networkimprov/repos","events_url":"https://api.github.com/users/networkimprov/events{/privacy}","received_events_url":"https://api.github.com/users/networkimprov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/node/labels/defer-to-converged","name":"defer-to-converged","color":"bfe5bf"},{"url":"https://api.github.com/repos/joyent/node/labels/feature-request","name":"feature-request","color":"0b02e1"},{"url":"https://api.github.com/repos/joyent/node/labels/http","name":"http","color":"e10c02"},{"url":"https://api.github.com/repos/joyent/node/labels/net","name":"net","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2011-09-29T20:13:13Z","updated_at":"2015-06-22T18:26:36Z","closed_at":"2015-06-22T18:26:35Z","body":"Provide a writeFile(filename, callback) method of http.ServerResponse (and/or net.Socket) which uses sendfile or splice internally. Would run in the thread pool to avoid blocking.\r\n\r\nThis was discussed last year and Ry concluded it should wait for the writev patch...\r\n\r\nhttps://groups.google.com/group/nodejs-dev/browse_thread/thread/1461c9ea5e90fc4e/d62fc949de7af66e\r\n\r\nEdit: should take a 'noCache' argument, which if true calls posix_fadvise() after each sendfile() call:\r\n\r\n      posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/114208557","html_url":"https://github.com/joyent/node/issues/1802#issuecomment-114208557","issue_url":"https://api.github.com/repos/joyent/node/issues/1802","id":114208557,"user":{"login":"jasnell","id":439929,"avatar_url":"https://avatars.githubusercontent.com/u/439929?v=3","gravatar_id":"","url":"https://api.github.com/users/jasnell","html_url":"https://github.com/jasnell","followers_url":"https://api.github.com/users/jasnell/followers","following_url":"https://api.github.com/users/jasnell/following{/other_user}","gists_url":"https://api.github.com/users/jasnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jasnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasnell/subscriptions","organizations_url":"https://api.github.com/users/jasnell/orgs","repos_url":"https://api.github.com/users/jasnell/repos","events_url":"https://api.github.com/users/jasnell/events{/privacy}","received_events_url":"https://api.github.com/users/jasnell/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T18:26:35Z","updated_at":"2015-06-22T18:26:35Z","body":"Not something that will land in v0.10 or v0.12. Marking as deferred and closing. If this is still something someone wants, then an issue should be opened in nodejs/io.js or nodejs/node"}}