kansifang / moquette-mqtt

Automatically exported from code.google.com/p/moquette-mqtt
Apache License 2.0
0 stars 0 forks source link

Moquette broker drops subscriber connections #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and run Jar on Java 7 on OS X
2. run mosquitto_sub -t test
3. run SimpleMessage (using Paho C client) to send 100 messages on topic test

What is the expected output? What do you see instead?
I expect 100 messages to arrive and then the mosquitto_sub client to wait for 
more data. It is disconnected after a few seconds instead.

What version of the product are you using? On what operating system?
OS X 10.8.1 Oracle Java 7

Original issue reported on code.google.com by andypiperuk on 13 Sep 2012 at 10:39

GoogleCodeExporter commented 9 years ago
I don't know how to use it,anyone can give me a example? thanks very much.

Original comment by gangzhi...@gmail.com on 15 Sep 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Hi gangzhiguo,
yuo dont' know how to use moquette or the mosquitto_sub?

Original comment by selva.an...@gmail.com on 15 Sep 2012 at 5:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9df266983989.

Original comment by selva.an...@gmail.com on 17 Sep 2012 at 9:29

GoogleCodeExporter commented 9 years ago
This issue was due to bad read timeout management in IoSession.idle. Instead of 
check only for reader timeout it's checks all, so also the writer, and the 
writer is defaulted to 10 seconds by MINA, so the broker dropped connections 
before the client could ping.

Original comment by selva.an...@gmail.com on 17 Sep 2012 at 9:31