All clients now time out if they exceed their keepalive*1.5
This was inconsistent before. Partially addresses #865.
This commit is contained in:
parent
b07e0c08bf
commit
fc9a0db966
@ -10,6 +10,8 @@ Broker:
|
||||
where only the loopback interface is defined. Closes #869, Closes #901.
|
||||
- Fix IPv6 addresses not being able to be used as bridge addresses.
|
||||
Closes #886.
|
||||
- All clients now time out if they exceed their keepalive*1.5, rather than
|
||||
just reach it. This was inconsistent in two places.
|
||||
|
||||
|
||||
1.5 - 20180502
|
||||
|
@ -243,7 +243,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
|
||||
/* Local bridges never time out in this fashion. */
|
||||
if(!(context->keepalive)
|
||||
|| context->bridge
|
||||
|| now - context->last_msg_in < (time_t)(context->keepalive)*3/2){
|
||||
|| now - context->last_msg_in <= (time_t)(context->keepalive)*3/2){
|
||||
|
||||
if(db__message_write(db, context) == MOSQ_ERR_SUCCESS){
|
||||
#ifdef WITH_EPOLL
|
||||
|
Loading…
Reference in New Issue
Block a user