一下是我的配置:
location /pull/ {
rewrite_by_lua '
ngx.req.set_header("If-Modified-Since", "Thu, 07 Mar 2013
02:50:00 GMT");
';
push_subscriber;
set $push_channel_id $arg_channelid;
default_type text/html;
}
location /push/ {
push_publisher;
set $push_channel_id $arg_channelid;
}
有个奇怪的现象,开始的时候,访问 /pull/ 很正常的。
但是,过了一段时间后, 大概1个小时左右吧。再次访问 /pull/的时候, 页面就出现了
“连接被重置 、 载入页面时到服务器的连接被重置。”
查看日志 error.log
2013/03/07 13:26:15 [notice] 14873#0: signal 17 (SIGCHLD) received
2013/03/07 13:26:15 [alert] 14873#0: worker process 14874 exited on
signal 11
2013/03/07 13:26:15 [notice] 14873#0: start worker process 20092
2013/03/07 13:26:15 [notice] 14873#0: signal 29 (SIGIO) received
2013/03/07 13:26:48 [info] 14875#0: *568 client closed prematurely
connection, client: 203.86.63.98, server: testpush.ws.netease.com,
request: "GET /pull/?channelid=123 HTTP/1.1", host:
"testpush.ws.netease.com"
这是什么原因呢?