#46 Added config file support.

This commit is contained in:
XMRig 2017-07-31 16:05:16 +03:00
parent 5bed17a8af
commit e6a72b2f78
5 changed files with 283 additions and 89 deletions

View file

@ -529,6 +529,10 @@ void Client::onRead(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
return client->close();;
}
if ((size_t) nread > (kRecvBufSize - 8 - client->m_recvBufPos)) {
return client->close();;
}
client->m_recvBufPos += nread;
char* end;