Fix shutdown problem and reduce event_{add,del,set} calls.

This commit is contained in:
Jan Vidar Krey
2009-07-19 03:12:47 +02:00
parent b02618d19c
commit 5f0c84f46a
2 changed files with 12 additions and 3 deletions

View File

@@ -97,6 +97,7 @@ struct user_net_io
int sd; /** socket descriptor */
struct event event; /** libevent struct for read/write events */
struct event timeout; /** timeout handling */
int events; /** currently set events, used to reduce event_{add,del,set} calls */
struct hub_recvq* recv_queue;
struct hub_sendq* send_queue;