From 3e405d90d1c0120174381edfc936686454b761b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 7 Apr 2015 11:15:49 +0200 Subject: [PATCH] Revert "test: fix tcp_oob occassionally timing out" This reverts commit 3346082132dc2ff809dfd5d25d451c0b33905f53. See https://github.com/libuv/libuv/issues/258 --- test/test-tcp-oob.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-tcp-oob.c b/test/test-tcp-oob.c index 6107af93..fc011ee4 100644 --- a/test/test-tcp-oob.c +++ b/test/test-tcp-oob.c @@ -84,14 +84,14 @@ static void connection_cb(uv_stream_t* handle, int status) { * triggering `kevent()` for the first one */ do { - r = send(fd, "x", 1, MSG_OOB); + r = send(fd, "hello", 5, MSG_OOB); } while (r < 0 && errno == EINTR); - ASSERT(1 == r); + ASSERT(5 == r); do { - r = send(fd, "x", 1, MSG_OOB); + r = send(fd, "hello", 5, MSG_OOB); } while (r < 0 && errno == EINTR); - ASSERT(1 == r); + ASSERT(5 == r); ASSERT(0 == uv_stream_set_blocking((uv_stream_t*) &client_handle, 0)); }