From 00b75759f1a99290032325eb04f2c2da23be03e7 Mon Sep 17 00:00:00 2001 From: Arnout Kazemier Date: Tue, 9 Aug 2011 19:33:27 +0200 Subject: [PATCH 1/2] Added socket.io-flashsocket default port --- lib/manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manager.js b/lib/manager.js index b5f32dbb10..6530b7d30d 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -71,7 +71,7 @@ function Manager (server, options) { , 'heartbeat interval': 20 , 'polling duration': 20 , 'flash policy server': true - , 'flash policy port': 843 + , 'flash policy port': 10843 , 'destroy upgrade': true , 'browser client': true , 'browser client minification': false From 6db6db41a2503b714c1e48c11dfe5027f4889166 Mon Sep 17 00:00:00 2001 From: einaros Date: Wed, 31 Aug 2011 19:55:28 +0200 Subject: [PATCH 2/2] corrected passing of status code for handshake error --- lib/manager.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/manager.js b/lib/manager.js index 3d89f93666..7f856f8afd 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -775,8 +775,7 @@ Manager.prototype.handleHandshake = function (data, req, res) { res.writeHead(200, { 'Content-Type': 'application/javascript' }); res.end('io.j[' + data.query.jsonp + '](new Error("' + message + '"));'); } else { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - res.writeHead(status); + res.writeHead(status, { 'Content-Type': 'text/plain' }); res.end(message); } };