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

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -