Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
bench: remove dead and buggy code
Browse files Browse the repository at this point in the history
Pipe accept benchmarks have never been implemented, remove the code path.

Said code path also contained a bug: it tried to bind to the same pipe that is
bound to a few lines down.
  • Loading branch information
bnoordhuis committed Nov 16, 2012
1 parent a28bc88 commit 59a2c63
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/benchmark-multi-accept.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ static void send_listen_handles(uv_handle_type type,
ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) &ctx.server_handle));
ASSERT(0 == uv_tcp_bind((uv_tcp_t*) &ctx.server_handle, listen_addr));
}
else if (type == UV_NAMED_PIPE) {
ASSERT(0 == uv_pipe_init(loop, (uv_pipe_t*) &ctx.server_handle, 0));
ASSERT(0 == uv_pipe_bind((uv_pipe_t*) &ctx.server_handle, IPC_PIPE_NAME));
}
else
ASSERT(0);

Expand Down

0 comments on commit 59a2c63

Please sign in to comment.