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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -