mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
Drain th_notify_fd[0] more bytes at a time.
This commit is contained in:
parent
17522d2af8
commit
a5bc15b2e1
2
event.c
2
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)
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user