help
help copied to clipboard
Feed pipe client to raw poll fails while server side works
I'm trying to run the following code:
- start
uv_pipe_init
uv_uv_pipe_connect
- 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.
- start
uv_pipe_init
uv_pipe_bind
uv_listen
- 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?