节点代理意外关闭连接

2024-05-15 01:04:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我的系统使用apache和mod\wsgi运行python代码。在

节点代理到apache的连接。在

在python脚本中,我提供一个文件以响应httpget。在

当请求在中间意外地删减连接时。在

节点代码:

var server = https.createServer(httpsOptions,function (req, res) {

var result=req.url.match(/^\/(.*?)(\/.*?)$/);
    if (!(result&&result[1]=='socket.io')) {
        return proxy.proxyRequest(req, res);
    }
});

当我向apache发出请求时,如果可以的话。 对于节点重新启动后的第一个请求,它也可以正常工作。在


Tags: 文件代码脚本modwsgi代理节点server

热门问题