willem4ever/mod_websocket_mosquitto

Connection lost after 'x' seconds using mosquitto-1.1.js client

Closed this issue · 6 comments

I've installed mod_websocket_mosquitto, configured apache correctly and everything seemed to work. But, when I started to publish messages and subscribing to specific topics, the client connection gets dropped after the timeout set in the mqtt_ping function. Is this an issue from mod_websocket_mosquitto or the mosquitto-1.1.js client itself?

Hi,

This is most likely a problem with your apache configuration. On which platform are running apache ?

Rg Willem.

On 23 Apr 2013, at 12:33, Elisiário Couto notifications@github.com wrote:

I've installed mod_websocket_mosquitto, configured apache correctly and everything seemed to work. But, when I started to publish messages and subscribing to specific topics, the client connection gets dropped after the timeout set in the mqtt_ping function. Is this an issue from mod_websocket_mosquitto or the mosquitto-1.1.js client itself?


Reply to this email directly or view it on GitHub.

I'm running it on Ubuntu 12.04 Server 64-bit.
On apache2.conf, I have these lines:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5

None of which seems to be related to the problem.

It is working fine for several people. Please look for RequestReadTimeout body=10,minrate=500 or something similair as it closes the connection ....

On 23 Apr 2013, at 13:38, Elisiário Couto notifications@github.com wrote:

I'm running it on Ubuntu 12.04 Server 64-bit.
On apache2.conf, I have these lines:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5

None of which seems to be related to the problem.


Reply to this email directly or view it on GitHub.

I changed the options that you've said and it seems to be working just fine. Although, I need to mqqt_ping() periodically, or the connection gets lost after "another" different timeout. This is normal, right?

That will be done automatically, the absence of it will cause the broker or client to disconnect.

On 23 Apr 2013, at 15:12, Elisiário Couto notifications@github.com wrote:

I changed the options that you've said and it seems to be working just fine. Although, I need to mqqt_ping() periodically, or the connection gets lost after "another" different timeout. This is normal, right?


Reply to this email directly or view it on GitHub.

Ok. Thanks for your help and congratulations for your work. I'm closing the issue.

Once again, thanks.
Elisiário Couto