]> granicus.if.org Git - libevent/commitdiff
Drain th_notify_fd[0] more bytes at a time.
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Jul 2010 17:24:12 +0000 (13:24 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Jul 2010 17:24:12 +0000 (13:24 -0400)
event.c

diff --git a/event.c b/event.c
index f68d345c284646510270c36476f3912276afd86b..12522993d4f735547032d6d90c544e6187cb889d 100644 (file)
--- a/event.c
+++ b/event.c
@@ -2536,7 +2536,7 @@ evthread_notify_drain_eventfd(evutil_socket_t fd, short what, void *arg)
 static void
 evthread_notify_drain_default(evutil_socket_t fd, short what, void *arg)
 {
-       unsigned char buf[128];
+       unsigned char buf[1024];
 #ifdef WIN32
        while (recv(fd, (char*)buf, sizeof(buf), 0) > 0)
                ;