1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
This commit is contained in:
stefanocasazza 2019-09-21 16:14:25 +02:00
parent 1bdf7923c8
commit 88d1e1f923
6 changed files with 9 additions and 5 deletions

View File

@ -1052,7 +1052,7 @@ private:
UREDISClusterClient *subscriptionClient;
UHashMap<RedisClusterNode *> *clusterNodes; // when these call they need to be processed... also when MOVED... we need to set up and recalculate
uint16_t hashslotForKey(const UString& hashableKey) { return u_crc16(U_STRING_TO_PARAM(hashableKey)); }
uint16_t hashslotForKey(const UString& hashableKey) { return u_crc16(U_STRING_TO_PARAM(hashableKey)) % 16384; }
uint16_t hashslotFromCommand(const UString& command)
{

View File

@ -27,8 +27,8 @@
# include <openssl/x509_vfy.h>
# include <ulib/base/ssl/dgst.h>
typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
#ifdef DISABLE_CRL
# define U_STORE_FLAGS 0
# ifdef DISABLE_CRL
# define U_STORE_FLAGS 0
# else
# ifndef X509_V_FLAG_CRL_CHECK
# define X509_V_FLAG_CRL_CHECK 0x4
@ -36,7 +36,8 @@ typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
# ifndef X509_V_FLAG_CRL_CHECK_ALL
# define X509_V_FLAG_CRL_CHECK_ALL 0x8
# endif
# define U_STORE_FLAGS (X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL)
# define U_STORE_FLAGS (X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL)
# endif
#endif
#ifndef FNM_LEADING_DIR

View File

@ -1 +1 @@
0625
063A

View File

@ -20,6 +20,7 @@ userver {
WELCOME_MSG "generic server ready."
ALLOWED_IP 127.0.0.1
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
DOCUMENT_ROOT .
LOG_FILE server.log
LOG_FILE_SZ 1M
PLUGIN echo

View File

@ -3,6 +3,7 @@ userver {
WELCOME_MSG "generic server ready."
ALLOWED_IP 127.0.0.1
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
DOCUMENT_ROOT .
LOG_FILE server.log
LOG_FILE_SZ 1M
PLUGIN echo

View File

@ -1,6 +1,7 @@
SERVER {
PORT 8080
DOCUMENT_ROOT .
# DOS_SITE_COUNT 1
DOS_WHITE_LIST 127.0.0.1,10.8.0.0/16