main: src/unix/core.c:117: uv_close: Assertion `!uv__is_closing(handle)' failed

Viewed 2139

When I try to use the function uv_close((uv_handle_t*)client,NULL) in libuv library to actively close the TCP connection with the client, the error

"main: src/unix/core.c:117: uv_close: Assertion `!uv__is_closing(handle)' failed."

was reported. I search a lot online, but I still cannot find the correct way to solve the problem. I wish someone can tell me why this problem resulted and how to solve it.

1 Answers
Related