Skip to content

Commit

Permalink
Don't check for POLLERR or POLLNVAL.
Browse files Browse the repository at this point in the history
Errors will be caught when trying to read anyway, and doing these checks
here means that sockets may be closed prematurely.
  • Loading branch information
ralight committed Jul 8, 2014
1 parent 0ff0cfb commit 8b2effc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,6 @@ static void loop_handle_reads_writes(struct mosquitto_db *db, struct pollfd *pol
continue;
}
}

if(pollfds[context->pollfd_index].revents & (POLLERR | POLLNVAL)){
do_disconnect(db, context);
continue;
}
}
}

0 comments on commit 8b2effc

Please sign in to comment.