diff --git a/kernel/tests.c b/kernel/tests.c index ed75a9ec..2008bf14 100644 --- a/kernel/tests.c +++ b/kernel/tests.c @@ -240,6 +240,8 @@ void* client_task(void* e) struct hostent *hp; int n; + int on = 1; + sleep(1); /* fill in the socket structure with host information */ @@ -254,6 +256,8 @@ void* client_task(void* e) return; } + setsockopt( sd, IPPROTO_TCP, TCP_NODELAY, (char *) &on, sizeof( on)); + kprintf("connecting with socket nr : %d",sd); /* connect to PORT on HOST */