- if (!io_new_conn(fd, start_ok, finish_ok, state))
- abort();
+#ifdef DEBUG_CONN
+ io_set_debug(conn, true);
+#endif
+ ok1(*state == 0);
+ (*state)++;
+ expected_fd = io_conn_fd(conn);
+ io_set_finish(conn, finish_ok, state);
+
+ return io_close(conn);