Fixed TLS build on Windows GCC/MVSC
Cleanup TLS compile
This commit is contained in:
parent
48493bbbb2
commit
9d0f570577
13 changed files with 66 additions and 51 deletions
|
@ -282,7 +282,7 @@ void Client::onRead(net_t *net, size_t size, char *buf)
|
|||
{
|
||||
auto client = getClient(net->data);
|
||||
|
||||
if (size < 0) {
|
||||
if (size == 0) {
|
||||
if (size != UV_EOF && !client->m_quiet) {
|
||||
LOG_ERR("[%s:%u] read error: \"%s\"", client->m_url.host(), client->m_url.port(), uv_strerror((int) size));
|
||||
}
|
||||
|
|
|
@ -36,14 +36,20 @@
|
|||
#include "net/Url.h"
|
||||
#include "rapidjson/fwd.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "net.h"
|
||||
|
||||
#ifndef XMRIG_NO_TLS
|
||||
#include "tls.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
class IClientListener;
|
||||
class JobResult;
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
|
||||
Url::Url() :
|
||||
m_useTls(false),
|
||||
m_keepAlive(false),
|
||||
m_nicehash(false),
|
||||
m_host(nullptr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue