Fix problems with write events not being processed due to a read event taking presendence.
Conflicts: src/core/netevent.c
This commit is contained in:
parent
066b3f5243
commit
eb7bec585e
|
@ -216,7 +216,7 @@ void net_event(struct net_connection* con, int event, void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event & NET_EVENT_WRITE)
|
if (!flag_close && event & NET_EVENT_WRITE)
|
||||||
{
|
{
|
||||||
flag_close = handle_net_write(user);
|
flag_close = handle_net_write(user);
|
||||||
if (flag_close)
|
if (flag_close)
|
||||||
|
|
|
@ -96,7 +96,7 @@ static void probe_net_event(struct net_connection* con, int events, void *arg)
|
||||||
net_con_ssl_handshake(con, NET_CON_SSL_MODE_SERVER);
|
net_con_ssl_handshake(con, NET_CON_SSL_MODE_SERVER);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endifq
|
||||||
probe_destroy(probe);
|
probe_destroy(probe);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue