python - node proxy closed connection unexpectedly -
my system runs python code apache , mod_wsgi.
node proxyes connection apache.
in python script serve file in response http get.
when requesting connction cuts unexpectedly in middle.
the node code:
var server = https.createserver(httpsoptions,function (req, res) {
var result=req.url.match(/^\/(.*?)(\/.*?)$/); if (!(result&&result[1]=='socket.io')) { return proxy.proxyrequest(req, res); } });
when make request apache if works fine. works fine first request affter node restart.
Comments
Post a Comment