Permalink
Browse files

Just closing socket before error

BTW, `data` argument doesn't do anything in `Socket.end`
  • Loading branch information...
1 parent c13a3af commit 83815fcaec8789d9d37a15dface86f2e11accc62 @kandelakig committed Apr 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 http.js
View
@@ -1,14 +1,15 @@
const net = require("./net");
function connectionListener(socket) {
+ socket.end('Server not yet implemented');
throw Error('Not yet implemented');
}
exports._connectionListener = connectionListener;
const Server = net.Server.extend({
constructor: function Server(requestListener) {
if (!(this instanceof Server)) return new Server(requestListener);
-
+
net.Server.call(this, {}, connectionListener);
if (requestListener) {

0 comments on commit 83815fc

Please sign in to comment.