Commit 37cfe0fd authored by Pekka Pessi's avatar Pekka Pessi

test_nth.c: using non-blocking connect in test program, too.

darcs-hash:20070528085708-65a35-76e3c7493b3f973fa81451f1528b3d13fb6a5cd3.gz
parent 2a338af3
......@@ -570,6 +570,7 @@ static int send_request(tester_t *t, char const *req, size_t reqlen,
if (c == INVALID_SOCKET) {
c = su_socket(t->t_addr->su_family, SOCK_STREAM, 0); TEST_1(c != SOCK_STREAM);
TEST_1(su_setblocking(c, 1) != -1);
TEST_1(connect(c, &t->t_addr->su_sa, t->t_addrlen) != -1);
while (su_root_step(t->t_root, 1) == 0);
......
......@@ -39,6 +39,7 @@
#include <assert.h>
#include <string.h>
#include <time.h>
#define SU_ROOT_MAGIC_T struct stun_magic_t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment