help icon indicating copy to clipboard operation
help copied to clipboard

Feed pipe client to raw poll fails while server side works

Open CurlyMoo opened this issue 8 years ago • 0 comments

I'm trying to run the following code:

  1. start
uv_pipe_init
uv_uv_pipe_connect
  1. inside callback of uv_pipe_connect
uv_fileno
uv_poll_init
uv_poll_start

Feeding the result of an uv_fileno to uv_poll_start with a UV_READABLE however fails.

libuv/unix/core.c:888: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.

However when i do the same on the server side of the pipe it does work.

  1. start
uv_pipe_init
uv_pipe_bind
uv_listen
  1. inside callback of uv_listen
uv_pipe_init
uv_accept
uv_fileno
uv_poll_init
uv_poll_start

Feeding the result of the uv_fileno of the accepted client to uv_poll_start with a UV_READABLE does work.

Sadly i can't find why the client side polling fails. Any ideas or is this a new issue?

CurlyMoo avatar Aug 04 '17 20:08 CurlyMoo