Added workaround, Google Chrome create extra dummy connections for future speed up.

This commit is contained in:
XMRig 2019-03-30 15:51:35 +07:00
parent 106e149324
commit bd6c7c64aa
4 changed files with 25 additions and 14 deletions

View file

@ -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();
}