Optimize event processing

This commit is contained in:
wangbin579 2018-06-07 15:20:42 +08:00
parent 39355bc57a
commit a506c5c53e
2 changed files with 2 additions and 3 deletions

View File

@ -56,7 +56,9 @@ void
chassis_event_add_with_timeout(chassis *chas, struct event *ev, struct timeval *tv)
{
event_base_set(chas->event_base, ev);
#if NETWORK_DEBUG_TRACE_EVENT
CHECK_PENDING_EVENT(ev);
#endif
event_add(ev, tv);
g_debug("%s:event add ev:%p", G_STRLOC, ev);
}

View File

@ -64,9 +64,6 @@ network_connection_pool_entry_free(network_connection_pool_entry *e, gboolean fr
if (e->sock && free_sock) {
network_socket *sock = e->sock;
g_debug("%s:event del, ev:%p", G_STRLOC, &(sock->event));
event_del(&(sock->event));
network_socket_free(sock);
}