From: Nick Mathewson Date: Mon, 5 Jul 2010 17:24:12 +0000 (-0400) Subject: Drain th_notify_fd[0] more bytes at a time. X-Git-Tag: release-2.0.6-rc~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5bc15b2e114a39d7b4f14bd1ba17182d6f07ed2;p=libevent Drain th_notify_fd[0] more bytes at a time. --- diff --git a/event.c b/event.c index f68d345c..12522993 100644 --- 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) ;