mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
sync
This commit is contained in:
parent
1bdf7923c8
commit
88d1e1f923
|
@ -1052,7 +1052,7 @@ private:
|
||||||
UREDISClusterClient *subscriptionClient;
|
UREDISClusterClient *subscriptionClient;
|
||||||
UHashMap<RedisClusterNode *> *clusterNodes; // when these call they need to be processed... also when MOVED... we need to set up and recalculate
|
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)
|
uint16_t hashslotFromCommand(const UString& command)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
# include <openssl/x509_vfy.h>
|
# include <openssl/x509_vfy.h>
|
||||||
# include <ulib/base/ssl/dgst.h>
|
# include <ulib/base/ssl/dgst.h>
|
||||||
typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
|
typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
|
||||||
#ifdef DISABLE_CRL
|
# ifdef DISABLE_CRL
|
||||||
# define U_STORE_FLAGS 0
|
# define U_STORE_FLAGS 0
|
||||||
# else
|
# else
|
||||||
# ifndef X509_V_FLAG_CRL_CHECK
|
# ifndef X509_V_FLAG_CRL_CHECK
|
||||||
|
@ -37,6 +37,7 @@ typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
|
||||||
# define X509_V_FLAG_CRL_CHECK_ALL 0x8
|
# define X509_V_FLAG_CRL_CHECK_ALL 0x8
|
||||||
# endif
|
# 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
|
#endif
|
||||||
|
|
||||||
#ifndef FNM_LEADING_DIR
|
#ifndef FNM_LEADING_DIR
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0625
|
063A
|
||||||
|
|
|
@ -20,6 +20,7 @@ userver {
|
||||||
WELCOME_MSG "generic server ready."
|
WELCOME_MSG "generic server ready."
|
||||||
ALLOWED_IP 127.0.0.1
|
ALLOWED_IP 127.0.0.1
|
||||||
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
|
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
|
||||||
|
DOCUMENT_ROOT .
|
||||||
LOG_FILE server.log
|
LOG_FILE server.log
|
||||||
LOG_FILE_SZ 1M
|
LOG_FILE_SZ 1M
|
||||||
PLUGIN echo
|
PLUGIN echo
|
||||||
|
|
|
@ -3,6 +3,7 @@ userver {
|
||||||
WELCOME_MSG "generic server ready."
|
WELCOME_MSG "generic server ready."
|
||||||
ALLOWED_IP 127.0.0.1
|
ALLOWED_IP 127.0.0.1
|
||||||
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
|
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
|
||||||
|
DOCUMENT_ROOT .
|
||||||
LOG_FILE server.log
|
LOG_FILE server.log
|
||||||
LOG_FILE_SZ 1M
|
LOG_FILE_SZ 1M
|
||||||
PLUGIN echo
|
PLUGIN echo
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
SERVER {
|
SERVER {
|
||||||
|
|
||||||
PORT 8080
|
PORT 8080
|
||||||
|
DOCUMENT_ROOT .
|
||||||
|
|
||||||
# DOS_SITE_COUNT 1
|
# DOS_SITE_COUNT 1
|
||||||
DOS_WHITE_LIST 127.0.0.1,10.8.0.0/16
|
DOS_WHITE_LIST 127.0.0.1,10.8.0.0/16
|
||||||
|
|
Loading…
Reference in New Issue
Block a user