wandenberg / nginx-push-stream-module

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

Can't send any string greater than the length of 104 characters #272

Closed areyohrahul closed 6 years ago

areyohrahul commented 6 years ago

Hey Wandenberg, I have been trying to use the push-stream-module on OSx to send data to the clients connected via websockets. This works fine till the data length of the string is less than 104 characters but doesn't work if the length of the message is greater than that.

I also tried running the following commands on my system:

$ sudo sysctl -w kern.ipc.maxsockbuf=16777216
$ sudo sysctl -w net.inet.tcp.sendspace=1048576
$ sudo sysctl -w net.inet.tcp.recvspace=1048576

Could you help me out with this?

wandenberg commented 6 years ago

Hey @rahulxxarora I will check. Can you provide more information about your environment/test? Browser version, nginx version, module version, basic configuration to reproduce the issue ...

areyohrahul commented 6 years ago

Hi @wandenberg, the issue has been solved now. It was probably because of the curl command truncating the message. When I tried the same thing with a Python script, it worked.

wandenberg commented 6 years ago

OK