wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

The module makes nginx worker exit #107

Closed AlexeyKupershtokh closed 10 years ago

AlexeyKupershtokh commented 10 years ago

When I try to use nginx 1.2.6 + module 0.4.x-RC3, it kills my nginx with the following logs in /var/log/nginx/error.log.

2013/10/31 18:12:02 [alert] 16797#0: worker process 17041 exited on signal 11
2013/10/31 18:13:30 [alert] 16797#0: worker process 17043 exited on signal 11
wicked@f2p-dev:~$ curl -s -v "http://push-stream.f2p-dev/sub-lp?id=1"
* About to connect() to push-stream.f2p-dev port 80 (#0)
*   Trying 127.0.0.1... connected
> GET /sub-lp?id=1 HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: push-stream.f2p-dev
> Accept: */*
> 
* Empty reply from server
* Connection #0 to host push-stream.f2p-dev left intact
* Closing connection #0
wicked@f2p-dev:~$ curl -s -v "http://push-stream.f2p-dev/pub?id=ch3" -X POST -d '123'
* About to connect() to push-stream.f2p-dev port 80 (#0)
*   Trying 127.0.0.1... connected
> POST /pub?id=ch3 HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: push-stream.f2p-dev
> Accept: */*
> Content-Length: 3
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 3out of 3 bytes
* Empty reply from server
* Connection #0 to host push-stream.f2p-dev left intact
* Closing connection #0

I've tried many configuration variants. Also I tried other link. Nginx normally serves fcgi, static files and errors like 404. Everything not involving the module works ok.

AlexeyKupershtokh commented 10 years ago
wicked@f2p-dev:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l
wicked@f2p-dev:~$ nginx -V
nginx version: nginx/1.2.6
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --http-scgi-temp-path=/var/lib/nginx/scgi --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-file-aio --add-module=../nginx-push-stream-module
wandenberg commented 10 years ago

Please, do not use the RC3 tag, use the 0.4.x branch, the tag has small bug depending of your configuration. I will remove it.

AlexeyKupershtokh commented 10 years ago

I installed it because thought that tags are usually more stable than branch head. I'll try 0.4.x as well. But is 0.4 is considered almost as stable as 0.3.5? On Oct 31, 2013 11:00 PM, "Wandenberg Peixoto" notifications@github.com wrote:

Please, do not use the RC3 tag, use the 0.4.x branch, the tag has small bug depending of your configuration. I will remove it.

— Reply to this email directly or view it on GitHubhttps://github.com/wandenberg/nginx-push-stream-module/issues/107#issuecomment-27498652 .

wandenberg commented 10 years ago

Yes, the 0.4.x is better than 0.3.5. The RC3 tag is "stable" too, if you explicitly set the shared memory size. If you not set, than this segfault will hapens. On 0.4.x branch I put a check to not let nginx starts without this configuration, just that ;)

AlexeyKupershtokh commented 10 years ago

Thank you. I've made RC3 work.