Don't check for POLLERR or POLLNVAL.

Errors will be caught when trying to read anyway, and doing these checks
here means that sockets may be closed prematurely.
pull/211/merge
Roger A. Light 11 years ago
parent 0ff0cfb3d3
commit 8b2effcc36

@ -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;
}
}
}

Loading…
Cancel
Save