aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/tests/connect.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-29 21:52:17 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-29 21:52:17 +0100
commit044e9ecdc3ea1775a40b13add07afd15f3565dff (patch)
treedb5a2dd8b28bd43ba7071b072a96511ed26529e4 /libglouglou/tests/connect.c
parentmany improvements, mainly on gg_client (diff)
downloadglouglou-044e9ecdc3ea1775a40b13add07afd15f3565dff.tar.xz
glouglou-044e9ecdc3ea1775a40b13add07afd15f3565dff.zip
use EVLOOP_NONBLOCK in event_base_loop(), as we now deal with timers in
gg_client so we need more event cycles than EVLOOP_ONCE.
Diffstat (limited to 'libglouglou/tests/connect.c')
-rw-r--r--libglouglou/tests/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglouglou/tests/connect.c b/libglouglou/tests/connect.c
index b61107f..3e46667 100644
--- a/libglouglou/tests/connect.c
+++ b/libglouglou/tests/connect.c
@@ -34,8 +34,8 @@ main(void)
printf("error: gg_client_connect returned NULL\n");
return 1;
}
- event_base_loop(ev_base, EVLOOP_ONCE);
- event_base_loop(ev_base, EVLOOP_ONCE);
+ event_base_loop(ev_base, EVLOOP_NONBLOCK);
+ event_base_loop(ev_base, EVLOOP_NONBLOCK);
if (srv_connect_ok == 0)
printf("error: srv_connect_ok == 0\n");