Added workaround, Google Chrome create extra dummy connections for future speed up.
This commit is contained in:
parent
106e149324
commit
bd6c7c64aa
4 changed files with 25 additions and 14 deletions
|
@ -103,7 +103,5 @@ void xmrig::HttpResponse::end(const char *data, size_t size)
|
|||
HttpContext *ctx = HttpContext::get(m_id);
|
||||
uv_try_write(ctx->stream(), bufs, data ? 2 : 1);
|
||||
|
||||
if (!uv_is_closing(ctx->handle())) {
|
||||
uv_close(ctx->handle(), HttpContext::close);
|
||||
}
|
||||
ctx->close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue