Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 27) sorted by relevance

12

/redis-3.2.3/src/
H A Dsyncio.c49 ssize_t syncWrite(int fd, char *ptr, ssize_t size, long long timeout) { in syncWrite() argument
52 long long remaining = timeout; in syncWrite()
73 if (elapsed >= timeout) { in syncWrite()
77 remaining = timeout - elapsed; in syncWrite()
85 ssize_t syncRead(int fd, char *ptr, ssize_t size, long long timeout) { in syncRead() argument
88 long long remaining = timeout; in syncRead()
112 if (elapsed >= timeout) { in syncRead()
116 remaining = timeout - elapsed; in syncRead()
125 ssize_t syncReadLine(int fd, char *ptr, ssize_t size, long long timeout) { in syncReadLine() argument
132 if (syncRead(fd,&c,1,timeout) == -1) return -1; in syncReadLine()
H A Dae_kqueue.c109 struct timespec timeout; in aeApiPoll() local
110 timeout.tv_sec = tvp->tv_sec; in aeApiPoll()
111 timeout.tv_nsec = tvp->tv_usec * 1000; in aeApiPoll()
113 &timeout); in aeApiPoll()
H A Dae_evport.c245 struct timespec timeout, *tsp; in aeApiPoll() local
273 timeout.tv_sec = tvp->tv_sec; in aeApiPoll()
274 timeout.tv_nsec = tvp->tv_usec * 1000; in aeApiPoll()
275 tsp = &timeout; in aeApiPoll()
H A Dblocked.c76 int getTimeoutFromObjectOrReply(client *c, robj *object, mstime_t *timeout, int unit) { in getTimeoutFromObjectOrReply() argument
92 *timeout = tval; in getTimeoutFromObjectOrReply()
H A Dt_list.c616 void blockForKeys(client *c, robj **keys, int numkeys, mstime_t timeout, robj *target) { in blockForKeys() argument
621 c->bpop.timeout = timeout; in blockForKeys()
873 mstime_t timeout; in blockingPopGenericCommand() local
876 if (getTimeoutFromObjectOrReply(c,c->argv[c->argc-1],&timeout,UNIT_SECONDS) in blockingPopGenericCommand()
924 blockForKeys(c, c->argv + 1, c->argc - 2, timeout, NULL); in blockingPopGenericCommand()
936 mstime_t timeout; in brpoplpushCommand() local
938 if (getTimeoutFromObjectOrReply(c,c->argv[3],&timeout,UNIT_SECONDS) in brpoplpushCommand()
950 blockForKeys(c, c->argv + 1, 1, timeout, c->argv[2]); in brpoplpushCommand()
H A Dserver.h533 mstime_t timeout; /* Blocking operation timeout. If UNIX current time member
1227 ssize_t syncWrite(int fd, char *ptr, ssize_t size, long long timeout);
1228 ssize_t syncRead(int fd, char *ptr, ssize_t size, long long timeout);
1229 ssize_t syncReadLine(int fd, char *ptr, ssize_t size, long long timeout);
1470 int getTimeoutFromObjectOrReply(client *c, robj *object, mstime_t *timeout, int unit);
H A Dredis-trib.rb1394 timeout = argv[1].to_i
1395 if timeout < 100
1409 n.r.config("set","cluster-node-timeout",timeout)
H A Dcluster.c4554 migrateCachedSocket* migrateGetSocket(client *c, robj *host, robj *port, long timeout) { in migrateGetSocket() argument
4592 if ((aeWait(fd,AE_WRITABLE,timeout) & AE_WRITABLE) == 0) { in migrateGetSocket()
4653 long timeout; in migrateCommand() local
4695 if (getLongFromObjectOrReply(c,c->argv[5],&timeout,NULL) != C_OK || in migrateCommand()
4700 if (timeout <= 0) timeout = 1000; in migrateCommand()
4728 cs = migrateGetSocket(c,c->argv[1],c->argv[2],timeout); in migrateCommand()
4785 nwritten = syncWrite(cs->fd,buf+pos,towrite,timeout); in migrateCommand()
4798 if (select && syncReadLine(cs->fd, buf1, sizeof(buf1), timeout) <= 0) in migrateCommand()
4809 if (syncReadLine(cs->fd, buf2, sizeof(buf2), timeout) <= 0) { in migrateCommand()
H A Dreplication.c2138 mstime_t timeout; in waitCommand() local
2145 if (getTimeoutFromObjectOrReply(c,c->argv[2],&timeout,UNIT_MILLISECONDS) in waitCommand()
2157 c->bpop.timeout = timeout; in waitCommand()
H A Dscripting.c2349 int timeout = 0; in luaLdbLineHook() local
2360 timeout = 1; in luaLdbLineHook()
2371 else if (timeout) reason = "timeout reached, infinite loop?"; in luaLdbLineHook()
2379 if (ldbRepl(lua) == C_ERR && timeout) { in luaLdbLineHook()
H A Dsentinel.c4045 int not_reconfigured = 0, timeout = 0; in sentinelFailoverDetectEnd() local
4070 timeout = 1; in sentinelFailoverDetectEnd()
4083 if (timeout) { in sentinelFailoverDetectEnd()
/redis-3.2.3/deps/jemalloc/test/src/
H A Dmq.c17 struct timespec timeout; in mq_nanosleep() local
20 timeout.tv_sec = 0; in mq_nanosleep()
21 timeout.tv_nsec = ns; in mq_nanosleep()
23 timeout.tv_sec = 1; in mq_nanosleep()
24 timeout.tv_nsec = 0; in mq_nanosleep()
26 nanosleep(&timeout, NULL); in mq_nanosleep()
/redis-3.2.3/deps/hiredis/
H A Dnet.c178 static int redisContextWaitReady(redisContext *c, const struct timeval *timeout) { in redisContextWaitReady() argument
187 if (timeout != NULL) { in redisContextWaitReady()
188 if (timeout->tv_usec > 1000000 || timeout->tv_sec > __MAX_MSEC) { in redisContextWaitReady()
194 msec = (timeout->tv_sec * 1000) + ((timeout->tv_usec + 999) / 1000); in redisContextWaitReady()
257 const struct timeval *timeout, in _redisContextConnectTcp() argument
318 if (redisContextWaitReady(c,timeout) != REDIS_OK) in _redisContextConnectTcp()
346 const struct timeval *timeout) { in redisContextConnectTcp() argument
347 return _redisContextConnectTcp(c, addr, port, timeout, NULL); in redisContextConnectTcp()
351 const struct timeval *timeout, in redisContextConnectBindTcp() argument
353 return _redisContextConnectTcp(c, addr, port, timeout, source_addr); in redisContextConnectBindTcp()
[all …]
H A Dnet.h44 …redisContextConnectTcp(redisContext *c, const char *addr, int port, const struct timeval *timeout);
46 const struct timeval *timeout,
48 int redisContextConnectUnix(redisContext *c, const char *path, const struct timeval *timeout);
H A Dtest.c27 struct timeval timeout; member
480 config.tcp.timeout.tv_sec = 0; in test_invalid_timeout_errors()
481 config.tcp.timeout.tv_usec = 10000001; in test_invalid_timeout_errors()
483 c = redisConnectWithTimeout(config.tcp.host, config.tcp.port, config.tcp.timeout); in test_invalid_timeout_errors()
489 config.tcp.timeout.tv_sec = (((LONG_MAX) - 999) / 1000) + 1; in test_invalid_timeout_errors()
490 config.tcp.timeout.tv_usec = 0; in test_invalid_timeout_errors()
492 c = redisConnectWithTimeout(config.tcp.host, config.tcp.port, config.tcp.timeout); in test_invalid_timeout_errors()
/redis-3.2.3/deps/hiredis/examples/
H A Dexample.c14 struct timeval timeout = { 1, 500000 }; // 1.5 seconds in main() local
15 c = redisConnectWithTimeout(hostname, port, timeout); in main()
/redis-3.2.3/
H A Dsentinel.conf115 sentinel failover-timeout mymaster 180000
H A Dredis.conf105 timeout 0
/redis-3.2.3/tests/assets/
H A Ddefault.conf7 timeout 0
/redis-3.2.3/utils/create-cluster/
H A Dcreate-cluster25 …ster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --append…
/redis-3.2.3/tests/integration/
H A Dreplication.tcl44 test {Slave is able to detect timeout during handshake} {
/redis-3.2.3/tests/
H A Dtest_helper.tcl451 } elseif {$opt eq {--timeout}} {
/redis-3.2.3/tests/unit/
H A Ddump.tcl202 test {MIGRATE timeout actually works} {
/redis-3.2.3/deps/jemalloc/bin/
H A Djeprof.in3276 my $timeout = shift;
3278 if (defined($timeout)) {
3280 push(@fetcher, "--max-time", sprintf("%d", $timeout));
3282 push(@fetcher, sprintf("--deadline=%d", $timeout));
/redis-3.2.3/tests/unit/type/
H A Dlist.tcl390 test {BRPOPLPUSH timeout} {

12