Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win: call uv_tcp_read_start is unsafe when libuv in UV__HANDLE_CLOSING trigger write_cb #842

Closed
esxgx opened this issue Apr 24, 2016 · 1 comment

Comments

@esxgx
Copy link

esxgx commented Apr 24, 2016

...
int uv_tcp_read_start(uv_tcp_t* handle, uv_alloc_cb alloc_cb,
uv_read_cb read_cb) {
uv_loop_t* loop = handle->loop;

handle->flags |= UV_HANDLE_READING;
....
which crashes my program.
Is it undefined behaviour to call uv_read_start after uv_close?

@esxgx esxgx closed this as completed Apr 25, 2016
@saghul
Copy link
Member

saghul commented Apr 25, 2016

Is it undefined behaviour to call uv_read_start after uv_close?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants