Drain th_notify_fd[0] more bytes at a time.

This commit is contained in:
Nick Mathewson 2010-07-05 13:24:12 -04:00
parent 17522d2af8
commit a5bc15b2e1

View File

@ -2536,7 +2536,7 @@ evthread_notify_drain_eventfd(evutil_socket_t fd, short what, void *arg)
static void static void
evthread_notify_drain_default(evutil_socket_t fd, short what, void *arg) evthread_notify_drain_default(evutil_socket_t fd, short what, void *arg)
{ {
unsigned char buf[128]; unsigned char buf[1024];
#ifdef WIN32 #ifdef WIN32
while (recv(fd, (char*)buf, sizeof(buf), 0) > 0) while (recv(fd, (char*)buf, sizeof(buf), 0) > 0)
; ;