If mosquitto fails to open the last socket in it's loop, it aborts
Bug #741380 reported by
Yuvraaj Kelkar
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mosquitto |
Fix Released
|
Undecided
|
Roger Light |
Bug Description
The fix for the last bug I reported (ipv6 socket failure) introduced a different bug: The last few lines in the function "mqtt3_
if(sock >= 0){
return 0;
}else{
return 1;
}
This causes mosquitto to exit if the last socket open fails. I think the expected logic is to fail if not even one socket open succeeds. The change I'm requesting is
<code>
// We need to have at least one working socket
if(*sock_count > 0){
return 0;
}else{
return 1;
}
</code>
Changed in mosquitto: | |
status: | Fix Committed → Triaged |
status: | Triaged → Fix Released |
To post a comment you must log in.
Ah yes.
Thanks for the patch, I'll put it in.