node-spdy-proxy icon indicating copy to clipboard operation
node-spdy-proxy copied to clipboard

Doesn't work with Nodejs v0.11.x

Open berstend opened this issue 12 years ago • 0 comments

Hi,

when using the latest dev version node-spdy-proxy stops working:

 ⚡ ~/dev/test/node-spdy-proxy (master) nvm run v0.11.4 --nouse-idle-notification --expose-gc --max-new-space-size=2048 --max-old-space-size=14336  runserver
Running node v0.11.4
4 Aug 22:30:08 - Server up listening at localhost:9090
4 Aug 22:35:51 - client
4 Aug 22:35:51 - [uncaughtException]: Cannot read property 'remoteAddress' of undefined
4 Aug 22:35:51 - [uncaughtException]: Cannot read property 'IP' of undefined

The issue lies within server.js:

var connectionHandler = function(client) {
    var debug, connection, IP, conID, user;
    debug = this.debug;
    connection = client.socket;
    debug("client", client.method)
    IP = connection.IP = connection.remoteAddress;

client.socket is empty.

Thanks.

berstend avatar Aug 04 '13 20:08 berstend