LearnBoost/socket.io — pull request #883 by crickeys (2012-05-13 05:18:40+00:00)
Title: Stops the occasional jsonp-polling error where this.response is null bec...

...ause of an error in transport at /transport.js:498:8

12 May 23:49:43 - Uncaught exception: TypeError: Cannot call method 'writeHead' of undefined
data: TypeError: Cannot call method 'writeHead' of undefined
data: at JSONPPolling.doWrite (/home/node/node_modules/socket.io/lib/transports/jsonp-polling.js:89:17)
data: at JSONPPolling.write (/home/node/node_modules/socket.io/lib/transports/http-polling.js:132:8)
data: at JSONPPolling.packet (/home/node/node_modules/socket.io/lib/transport.js:515:15)
data: at JSONPPolling.error (/home/node/node_modules/socket.io/lib/transport.js:498:8)
data: at JSONPPolling.onData (/home/node/node_modules/socket.io/lib/transports/jsonp-polling.js:70:7)
data: at IncomingMessage. (/home/node/node_modules/socket.io/lib/transports/http.js:65:12)
data: at IncomingMessage.emit (events.js:64:17)
data: at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:127:21)
data: at Socket.ondata (http.js:1468:22)
data: at TCP.onread (net.js:374:27)