#include <sys/wait.h>
#include <stdio.h>
-#ifndef PORT
+#ifdef DEBUG_CONN
+#define PORT "64018"
+#else
#define PORT "65018"
#endif
static struct io_plan *init_conn(struct io_conn *conn, int *state)
{
+#ifdef DEBUG_CONN
+ io_set_debug(conn, true);
+#endif
if (*state == 0) {
(*state)++;
errno = 100;
exit(0);
}
freeaddrinfo(addrinfo);
- ok1(io_loop() == &state + 1);
+ ok1(io_loop(NULL, NULL) == &state + 1);
ok1(state == 4);
io_close_listener(l);
ok1(wait(&state));