LearnBoost/socket.io — Issue #609: Cannot call method 'writeHead' of undefined
Author: Charuru
Created: 2011-11-01 05:55:16+00:00
State: open

I'm getting this in 0.8.6

I'm not sure which browser connected or caused the problem, this is just something I found in my err.log trying to figure out the reason for a crash.

```javascript
/home/ubuntu/www/node_modules/socket.io/lib/transports/jsonp-polling.js:87
this.response.writeHead(200, {
^
TypeError: Cannot call method 'writeHead' of undefined
at JSONPPolling.doWrite (/home/ubuntu/www/node_modules/socket.io/lib/transports/jsonp-polling.js:87:17)
at JSONPPolling.write (/home/ubuntu/www/node_modules/socket.io/lib/transports/http-polling.js:120:8)
at JSONPPolling.packet (/home/ubuntu/www/node_modules/socket.io/lib/transport.js:515:15)
at JSONPPolling.error (/home/ubuntu/www/node_modules/socket.io/lib/transport.js:498:8)
at JSONPPolling.onData (/home/ubuntu/www/node_modules/socket.io/lib/transports/jsonp-polling.js:68:10)
at IncomingMessage. (/home/ubuntu/www/node_modules/socket.io/lib/transports/http.js:60:12)
at IncomingMessage.emit (events.js:61:17)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1008:22)
at Socket._onReadable (net.js:681:27)
```
Back to 0.8.5 for now.