Commit d5379c3
committed
There is no socket read timeout set currently and default is to set to zero i.e. wait forever. Adding socket read timeout will help recovering from edge cases where packets are lost on the wire and
Signed-off-by: Rehan Shaukat <rehan.shaukat@gmail.com>MqttInputStream.readMqttWireMessage() fails to notify ClientState. In fact, readMqttWireMessage does handle the case for exception thrown due to socket read timeout and ignore it.1 parent dfca976 commit d5379c3
2 files changed
Lines changed: 3 additions & 1 deletion
File tree
- org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal
- org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments