mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
Force close TCP connections
This commit is contained in:
parent
924fd4b7bd
commit
68a4765f95
1 changed files with 1 additions and 1 deletions
|
@ -824,7 +824,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::Client::close()
|
||||||
uv_tcp_t* s = &m_socket;
|
uv_tcp_t* s = &m_socket;
|
||||||
uv_handle_t* h = reinterpret_cast<uv_handle_t*>(s);
|
uv_handle_t* h = reinterpret_cast<uv_handle_t*>(s);
|
||||||
if (!uv_is_closing(h)) {
|
if (!uv_is_closing(h)) {
|
||||||
uv_close(h, on_connection_close);
|
uv_tcp_close_reset(s, on_connection_close);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue