1. 12 Mar, 2013 1 commit
  2. 06 Mar, 2013 1 commit
  3. 04 Mar, 2013 1 commit
    • antirez's avatar
      redis-cli: use keepalive socket option. · 3b397441
      antirez authored
      This should improve things in two ways:
      
      1) Prevent timeouts caused by the execution of long commands.
      2) Improve detection of real connection errors.
      
      This is mostly effective only on Linux because of the bogus default
      keepalive settings. In Linux we have OS-specific calls to set the
      keepalive interval to reasonable values.
      3b397441
  4. 14 Feb, 2013 1 commit
  5. 21 Jan, 2013 1 commit
  6. 19 Jan, 2013 1 commit
  7. 18 Jan, 2013 2 commits
    • Jan-Erik Rediger's avatar
      Always exit if connection fails. · 59046a73
      Jan-Erik Rediger authored
      This avoids unnecessary core dumps. Fixes antirez/redis#894
      59046a73
    • Nathan Parry's avatar
      redis-cli --rdb fails if server sends a ping · 1920cab3
      Nathan Parry authored
      Redis pings slaves in "pre-synchronization stage" with newlines. (See
      https://github.com/antirez/redis/blob/2.6.9/src/replication.c#L814)
      However, redis-cli does not expect this - it sees the newline as the end
      of the bulk length line, and ends up returning 0 as bulk the length.
      This manifests as the following when running redis-cli:
      
          $ ./src/redis-cli --rdb some_file
          SYNC sent to master, writing 0 bytes to 'some_file'
          Transfer finished with success.
      
      With this commit, we just ignore leading newlines while reading the bulk
      length line.
      
      To reproduce the problem, load enough data into Redis so that the
      preparation of the RDB snapshot takes long enough for a ping to occur
      while redis-cli is waiting for the data.
      1920cab3
  8. 17 Jan, 2013 1 commit
  9. 16 Jan, 2013 1 commit
  10. 20 Dec, 2012 1 commit
  11. 08 Nov, 2012 1 commit
  12. 15 Jul, 2012 1 commit
  13. 13 Jun, 2012 1 commit
    • Ted Nyman's avatar
      Standardize punctuation in redis-cli help. · d665dd08
      Ted Nyman authored
      Right there is a mix of help entries ending with periods or
      without periods. This standardizes the end of command as without
      periods, which seems to be the general custom in most unix tools,
      at least.
      d665dd08
  14. 14 May, 2012 1 commit
    • antirez's avatar
      Added time.h include in redis-cli. · e9f0419c
      antirez authored
      redis-cli.c uses the time() function to seed the PRNG, but time.h was
      not included. This was not noticed since sys/time.h is included and was
      enough in most systems (but not correct). With Ubuntu 12.04 GCC
      generates a warning that made us aware of the issue.
      e9f0419c
  15. 11 May, 2012 2 commits
  16. 07 May, 2012 1 commit
  17. 24 Apr, 2012 1 commit
  18. 18 Apr, 2012 2 commits
  19. 19 Mar, 2012 1 commit
  20. 29 Feb, 2012 2 commits
  21. 22 Feb, 2012 2 commits
  22. 13 Dec, 2011 1 commit
  23. 28 Oct, 2011 1 commit
  24. 05 Oct, 2011 1 commit
  25. 21 Sep, 2011 1 commit
  26. 15 Sep, 2011 2 commits
  27. 28 May, 2011 4 commits
  28. 21 Apr, 2011 1 commit
  29. 29 Mar, 2011 1 commit
  30. 06 Mar, 2011 2 commits