mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 00:24:47 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user