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

publishing to the websocket does not work on OsX and FreeBSD #102

Closed jerzyk closed 10 years ago

jerzyk commented 11 years ago

I've compiled nginx 1.4.2 and 1.5.5 with latest nginx-push-stream-module on osx (10.8.5) and FreeBSD (9.1p3), setup and compilation went smoothly, without errors.

when example (chat.html) is working in 'WebSocket' mode, messages sent from the browser are not published (tested on Chrome, Safari & Firefox), messages sent from command line (curl) are being published and delivered.

when client is set to any other mode (eventsource, stream) everything works ok.

same setup on linux works without any issues.

I'm not exactly sure what is an exact source of the issue, but main difference between setups is event method - "kqueue" for osx & freebsd and "epoll" for the linux.

wandenberg commented 10 years ago

Hi @jerzyk can you check if this commit 71c511d42d293c922c23e0911d2bb63cd7821027 solve the problem to you?

twoixter commented 10 years ago

Same problem here. It seems to be fixed with this commit! It works now using 0.4.1-dev branch.

wandenberg commented 10 years ago

this fix was merged to master