r6147: The maxfd was being recalculated on every event loop, which made us
authorAndrew Tridgell <tridge@samba.org>
Thu, 31 Mar 2005 02:14:31 +0000 (02:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:22 +0000 (13:11 -0500)
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.
(This used to be commit 568b9175f329f594404c9091ee5946670c40697e)

source4/lib/events/events_standard.c

index 76c8c4768add3beb083d9f5dfb0429ea8b042278..a867f86801c7457fac7bcd400f3029010eb9a522 100644 (file)
@@ -514,7 +514,6 @@ static int std_event_loop_wait(struct event_context *ev)
        struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
                                                           struct std_event_context);
        std_ev->exit_code = 0;
-       std_ev->maxfd = EVENT_INVALID_MAXFD;
 
        while (std_ev->fd_events && std_ev->exit_code == 0) {
                if (std_event_loop_once(ev) != 0) {