fix warning + add redis server logging
This commit is contained in:
parent
fbf80f4ab1
commit
c32067013a
@ -195,6 +195,12 @@ namespace ix
|
|||||||
tokens.push_back(readResult.second);
|
tokens.push_back(readResult.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto&& token : tokens)
|
||||||
|
{
|
||||||
|
std::cerr << token << " ";
|
||||||
|
}
|
||||||
|
std::cerr << std::endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,8 +58,6 @@ namespace ix
|
|||||||
|
|
||||||
void stopAcceptingConnections();
|
void stopAcceptingConnections();
|
||||||
|
|
||||||
std::atomic<bool> _stop;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Member variables
|
// Member variables
|
||||||
int _port;
|
int _port;
|
||||||
@ -70,6 +68,8 @@ namespace ix
|
|||||||
// socket for accepting connections
|
// socket for accepting connections
|
||||||
int _serverFd;
|
int _serverFd;
|
||||||
|
|
||||||
|
std::atomic<bool> _stop;
|
||||||
|
|
||||||
std::mutex _logMutex;
|
std::mutex _logMutex;
|
||||||
|
|
||||||
// background thread to wait for incoming connections
|
// background thread to wait for incoming connections
|
||||||
|
Loading…
Reference in New Issue
Block a user