test: fix tcp_oob occassionally timing out
Patch by @indutny Fixes: https://github.com/libuv/libuv/issues/258 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
2eb1c18240
commit
3346082132
@ -84,14 +84,14 @@ static void connection_cb(uv_stream_t* handle, int status) {
|
||||
* triggering `kevent()` for the first one
|
||||
*/
|
||||
do {
|
||||
r = send(fd, "hello", 5, MSG_OOB);
|
||||
r = send(fd, "x", 1, MSG_OOB);
|
||||
} while (r < 0 && errno == EINTR);
|
||||
ASSERT(5 == r);
|
||||
ASSERT(1 == r);
|
||||
|
||||
do {
|
||||
r = send(fd, "hello", 5, MSG_OOB);
|
||||
r = send(fd, "x", 1, MSG_OOB);
|
||||
} while (r < 0 && errno == EINTR);
|
||||
ASSERT(5 == r);
|
||||
ASSERT(1 == r);
|
||||
|
||||
ASSERT(0 == uv_stream_set_blocking((uv_stream_t*) &client_handle, 0));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user