Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

change REDIS_IP_STR_LEN to 48 bytes for IPv6 string address #1156

Open
wants to merge 1 commit into from

2 participants

@charsyam

Considering IPv6(because redis will support IPv6 also)

IPv6 string address can represent to 45 bytes.

ref: http://stackoverflow.com/questions/166132/maximum-length-of-the-textual-representation-of-an-ipv6-address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 15, 2013
  1. @openbaas
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/redis.h
View
2  src/redis.h
@@ -120,7 +120,7 @@
#define REDIS_DEFAULT_AOF_REWRITE_INCREMENTAL_FSYNC 1
#define REDIS_DEFAULT_MIN_SLAVES_TO_WRITE 0
#define REDIS_DEFAULT_MIN_SLAVES_MAX_LAG 10
-#define REDIS_IP_STR_LEN 16
+#define REDIS_IP_STR_LEN 48
/* Protocol and I/O related defines */
#define REDIS_MAX_QUERYBUF_LEN (1024*1024*1024) /* 1GB max query buffer. */
Something went wrong with that request. Please try again.