mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
kqueue: Support EV_EOF and EV_ERROR
This commit is contained in:
parent
51a31bae08
commit
0491e6bf37
|
|
@ -185,6 +185,10 @@ int mux_kqueue__handle(void)
|
|||
for(int i=0; i<event_count; i++){
|
||||
context = event_list[i].udata;
|
||||
if(context->ident == id_client){
|
||||
if(event_list[i].flags & (EV_EOF | EV_ERROR)){
|
||||
do_disconnect(context, MOSQ_ERR_CONN_LOST);
|
||||
continue;
|
||||
}
|
||||
loop_handle_reads_writes(context, event_list[i].filter);
|
||||
}else if(context->ident == id_listener){
|
||||
listensock = event_list[i].udata;
|
||||
|
|
|
|||
Loading…
Reference in a new issue