Set monitor connections to non-blocking

Better to just drop monitor connections when the quality is bad than to
risk blocking the shard thread.
This commit is contained in:
2020-12-05 23:16:09 +01:00
parent 6b257887b7
commit 53d8cb67ba
3 changed files with 15 additions and 1 deletions

View File

@@ -117,6 +117,8 @@ inline bool validInVarPacket(size_t base, int32_t npayloads, size_t plsize, size
return true;
}
bool setSockNonblocking(SOCKET listener, SOCKET newSock);
namespace CNSocketEncryption {
// you won't believe how complicated they made it in the client :facepalm:
static constexpr const char* defaultKey = "m@rQn~W#";