redis/src
antirez 8366907bed Use best effort address binding to connect to the master
We usually want to reach the master using the address of the interface
Redis is bound to (via the "bind" config option). That's useful since
the master will get (and publish) the slave address getting the peer
name of the incoming socket connection from the slave.

However, when this is not possible, for example because the slave is
bound to the loopback interface but repliaces from a master accessed via
an external interface, we want to still connect with the master even
from a different interface: in this case it is not really important that
the master will provide any other address, while it is vital to be able
to replicate correctly.

Related to issues #2609 and #2612.
2015-06-11 14:34:38 +02:00
..
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07:00
Makefile Convert check-dump to Redis check-rdb mode 2015-01-28 11:18:16 -05:00
Makefile.dep Dependencies updated. 2014-07-02 17:04:14 +02:00
adlist.c Fix typos 2014-09-29 06:49:07 -04:00
adlist.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae.c Remove redundant event loop fd processing 2014-08-08 10:43:54 +02:00
ae.h ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae_epoll.c Fixed grammar: before H the article is a, not an. 2013-12-05 16:35:32 +01:00
ae_evport.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae_kqueue.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
ae_select.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
anet.c anet.c: new API anetTcpNonBlockBestEffortBindConnect() 2015-06-11 14:34:38 +02:00
anet.h anet.c: new API anetTcpNonBlockBestEffortBindConnect() 2015-06-11 14:34:38 +02:00
aof.c AOF rewrite: set iterator var to NULL when freed. 2015-01-21 16:42:08 +01:00
asciilogo.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
bio.c Check bio.c job type at thread startup. 2015-03-30 12:17:46 +02:00
bio.h Make bio.c threads killable ASAP if needed. 2012-11-22 10:12:11 +01:00
bitops.c Bitops: Stop overallocating storage space on set 2014-12-11 10:54:21 -05:00
blocked.c Substitute DISQUE to REDIS after merge from Disque 2015-05-05 16:36:35 +02:00
cluster.c Don't try to bind the source address for MIGRATE 2015-06-11 14:34:38 +02:00
cluster.h Cluster: redirection refactoring + handling of blocked clients. 2015-03-24 11:56:24 +01:00
config.c Config: improve loglevel message error. 2015-03-12 14:43:07 +01:00
config.h HAVE_SYNC_FILE_RANGE should be protected by ifdef __linux__. 2015-02-10 09:29:14 +01:00
crc16.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
crc64.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
crc64.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
db.c Change RENAME behavior when src and dst keys are the same. 2015-02-23 11:24:24 +01:00
debug.c Merge pull request #2301 from mattsta/fix/lengths 2015-02-24 17:22:53 +01:00
dict.c dict.c: convert types to unsigned long where appropriate. 2015-03-27 10:14:52 +01:00
dict.h SPOP: reimplemented for speed and better distribution. 2015-02-11 10:52:28 +01:00
endianconv.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
endianconv.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
fmacros.h Silence _BSD_SOURCE warnings in glibc 2.20 and forward 2014-12-05 12:41:59 +11:00
help.h Added <count> parameter to SPOP: 2014-12-14 12:25:42 +02:00
hyperloglog.c Better read-only behavior for expired keys in slaves. 2014-12-10 16:10:21 +01:00
intset.c SPOP: reimplemented for speed and better distribution. 2015-02-11 10:52:28 +01:00
intset.h SPOP: reimplemented for speed and better distribution. 2015-02-11 10:52:28 +01:00
latency.c Fix iterator for issue #2438. 2015-03-04 11:48:19 -08:00
latency.h Separate latency monitoring of eviction loop and eviction DELs. 2015-02-11 10:52:27 +01:00
lzf.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzfP.h Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
lzf_c.c Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
lzf_d.c Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
memtest.c Include stropts only if __sun is defined. 2014-12-09 12:59:46 +01:00
mkreleasehdr.sh suppress external diff program when using git diff. 2013-02-24 18:17:46 +01:00
multi.c Cleanup double semicolons 2014-08-08 14:54:02 +02:00
networking.c protocol error log should be seen debug/verbose level 2015-05-12 10:04:52 +09:00
notify.c Fix keyspace events flags-to-string conversion. 2014-01-08 17:18:34 +01:00
object.c CONFIG refactoring: configEnum abstraction. 2015-03-11 17:00:13 +01:00
pqsort.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
pqsort.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pubsub.c pubsub: Return integers for NUMSUB, not strings 2014-08-08 11:19:37 +02:00
quicklist.c Fix quicklist tests for Pop() 2015-02-17 11:33:08 -05:00
quicklist.h Allow compression of interior quicklist nodes 2015-01-02 11:16:09 -05:00
rand.c Use 'void' for zero-argument functions 2014-08-08 10:05:32 +02:00
rand.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
rdb.c Merge pull request #2301 from mattsta/fix/lengths 2015-02-24 17:22:53 +01:00
rdb.h Improve RDB type correctness 2015-01-19 14:10:12 -05:00
redis-benchmark.c Improve networking type correctness 2015-01-19 14:10:12 -05:00
redis-check-aof.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
redis-check-rdb.c Handle redis-check-rdb as a standalone program. 2015-02-03 10:25:01 +01:00
redis-cli.c redis-cli --latency-dist: one gray more, and --mono support. 2015-02-13 14:38:21 +01:00
redis-trib.rb Remove end of line whitespace from redis-trib 2015-01-08 13:31:03 -05:00
redis.c fix compile error for struct msghdr 2015-05-05 22:51:27 +09:00
redis.h Replication: disconnect blocked clients when switching to slave role. 2015-03-24 16:00:09 +01:00
redisassert.h assert.h replaced with redisassert.h when appropriate. 2013-08-19 15:01:21 +02:00
release.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
replication.c Use best effort address binding to connect to the master 2015-06-11 14:34:38 +02:00
rio.c Translate rio fdset target EWOULDBLOCK error into ETIMEDOUT. 2014-10-22 15:58:14 +02:00
rio.h Diskless replication: rio fdset target new supports buffering. 2014-10-17 11:36:12 +02:00
scripting.c hide access to debug table 2015-06-03 13:33:28 +02:00
sds.c sdsfree x and y 2015-04-20 23:03:34 +08:00
sds.h sdsnative() removed: New rdb.c API can load native strings. 2015-01-08 09:52:44 +01:00
sentinel.c Merge pull request #2571 from therealbill/sentinel-flushconfig-command 2015-05-25 12:06:25 +02:00
setproctitle.c Set proctitle: avoid the use of __attribute__((constructor)). 2013-02-27 11:50:35 +01:00
sha1.c sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
sha1.h sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
slowlog.c Introduction of a new string encoding: EMBSTR 2013-07-22 10:31:38 +02:00
slowlog.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
solarisfixes.h Check for __sun macro in solarisfixes.h, not in includers. 2015-01-09 11:23:22 +01:00
sort.c Removed incorrect suggestion 2015-05-21 13:24:51 +03:00
sparkline.c sparkline.c: AddSample skip Empty label 2014-12-08 11:43:32 +08:00
sparkline.h LATENCY GRAPH implemented. 2014-07-02 16:31:22 +02:00
syncio.c syncReadLine(): actually enforce buffer size limits. 2014-10-16 17:35:29 +02:00
t_hash.c Hash: HSTRLEN crash fixed when getting len of int-encoded value 2015-02-27 15:37:04 +01:00
t_list.c Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00
t_set.c Rewrite smoveCommand test with ternary operator 2015-05-15 17:38:48 +02:00
t_string.c Merge pull request #2050 from mattsta/bitops-no-overalloc 2015-02-25 10:18:07 +01:00
t_zset.c ZADD RETCH option renamed CH 2015-05-29 11:32:22 +02:00
testhelp.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
util.c Utils: Include stdint.h and fix signess in sdigits10(). 2015-02-27 16:03:02 +01:00
util.h Utils: Include stdint.h and fix signess in sdigits10(). 2015-02-27 16:03:02 +01:00
valgrind.sup more valgrind friendly test 2011-07-06 15:22:00 +02:00
version.h Version bumped to 3.1.999 (3.2 alpha versions). 2015-02-14 17:19:17 +01:00
ziplist.c Free ziplist test lists during tests 2015-01-02 11:16:08 -05:00
ziplist.h Add header guard for ziplist.h 2015-04-29 10:33:21 +02:00
zipmap.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
zipmap.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
zmalloc.c Add info as requested by the original getMemorySize() license. 2014-12-17 17:15:39 +01:00
zmalloc.h getMemorySize() moved into zmalloc.c with other low level mem utils. 2014-12-17 17:11:20 +01:00