redict/src
antirez 6c60526db9 Net: improve prepareClientToWrite() error handling and comments.
When we fail to setup the write handler it does not make sense to take
the client around, it is missing writes: whatever is a client or a slave
anyway the connection should terminated ASAP.

Moreover what the function does exactly with its return value, and in
which case the write handler is installed on the socket, was not clear,
so the functions comment are improved to make the goals of the function
more obvious.

Also related to #2485.
2015-04-01 10:07:45 +02:00
..
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07: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_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
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
anet.c Improve networking type correctness 2015-01-19 14:10:12 -05:00
anet.h AnetFormatIP(): renamed, commented, now sticks to IP:port format. 2014-12-11 18:20:30 +01: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 Replication: disconnect blocked clients when switching to slave role. 2015-03-24 16:00:09 +01:00
cluster.c Cluster: redirection refactoring + handling of blocked clients. 2015-03-24 11:56:24 +01: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_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
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
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
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 Net: improve prepareClientToWrite() error handling and comments. 2015-04-01 10:07:45 +02: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 Cluster: redirection refactoring + handling of blocked clients. 2015-03-24 11:56:24 +01: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 Net: improve prepareClientToWrite() error handling and comments. 2015-04-01 10:07:45 +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 Cluster: fix Lua scripts replication to slave nodes. 2015-03-22 22:24:08 +01:00
sds.c sdsnative() removed: New rdb.c API can load native strings. 2015-01-08 09:52:44 +01: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 #2386 from inkel/sentinel-add-client-command 2015-03-13 18:23:36 +01:00
setproctitle.c Set proctitle: avoid the use of __attribute__((constructor)). 2013-02-27 11:50:35 +01:00
sha1.c Check for __sun macro in solarisfixes.h, not in includers. 2015-01-09 11:23:22 +01:00
sha1.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05: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 Suppress sign warning in sort.c. 2015-02-03 15:42:56 +01: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 Fix setTypeNext call assuming NULL can be passed. 2015-03-31 15:26:35 +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 Fix three simple clang analyzer warnings 2014-12-23 09:31:04 -05: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 ziplistMerge() 2015-01-02 11:16:08 -05: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