Skip to content

Commit

Permalink
Fix persistent clients being incorrectly expired on Raspberry Pis.
Browse files Browse the repository at this point in the history
Closes eclipse-mosquitto#1272. Thanks to BowenMarmot and addendumE.
  • Loading branch information
ralight committed Jun 25, 2019
1 parent a5620d9 commit d17d7c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.6.4 - 2019xxxx
================

Broker:
- Fix persistent clients being incorrectly expired on Raspberry Pis.
Closes #1272.

1.6.3 - 20190618
================

Expand Down
4 changes: 3 additions & 1 deletion src/session_expiry.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ void session_expiry__check(struct mosquitto_db *db, time_t now)
last_check = now;

DL_FOREACH_SAFE(expiry_list, item, tmp){
if(item->context->session_expiry_time < now){
if(item->context->session_expiry_interval != UINT32_MAX
&& item->context->session_expiry_time < now){

context = item->context;
session_expiry__remove(context);

Expand Down

0 comments on commit d17d7c9

Please sign in to comment.