1. 03 Apr, 2020 1 commit
    • Michael Grunder's avatar
      Win32 tests and timeout fix (#776) · cc9d0329
      Michael Grunder authored
      Unit tests in Windows and a Windows timeout fix
      
      This commit gets our unit tests compiling and running on Windows as well as removes a duplicated `timeval` -> `DWORD` conversion logic in sockcompat.c 
      
      There are minor differences in behavior between Linux and Windows to note:
      
      1.  In Windows, opening a non-existent hangs forever in WSAPoll whereas
          it correctly returns with a "Connection refused" error on Linux.
          For that reason, I simply skip this test in Windows.
      
          It may be related to this known issue:
          https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/
      
      2.  Timeouts are handled slightly differently in Windows and Linux.  
          In Linux, we intentionally set REDIS_ERR_IO for connection
          timeouts whereas in Windows we set REDIS_ERR_TIMEOUT.  It may be
          prudent to fix this discrepancy although there are almost certainly
          users relying on the current behavior.
      cc9d0329
  2. 12 Dec, 2019 1 commit
    • michael-grunder's avatar
      Free the reply in redisGetReply when passed NULL · ac0b186a
      michael-grunder authored
      We currently perform a NULL check in redisGetReply and don't push the
      reply back to the caller, but we don't free any reply meaning that this
      will leak memory:
      
      redisGetReply(context, NULL);
      
      This change simply frees the reply if we were passed NULL.
      
      Addresses #740
      ac0b186a
  3. 25 Sep, 2019 1 commit
  4. 16 Sep, 2019 1 commit
    • Yossi Gottlieb's avatar
      Add SSL mode tests. · d952ed87
      Yossi Gottlieb authored
      This repeats all existing tests in SSL mode, but does not yet provide
      SSL-specific tests.
      d952ed87
  5. 14 May, 2019 1 commit
  6. 31 Mar, 2019 1 commit
  7. 26 Nov, 2018 1 commit
  8. 26 Sep, 2018 1 commit
  9. 21 May, 2018 1 commit
  10. 20 May, 2018 3 commits
  11. 19 May, 2018 1 commit
  12. 14 May, 2016 1 commit
  13. 20 Apr, 2016 1 commit
    • owent's avatar
      Add CI for Windows · 6c53d680
      owent authored
      - fix macro problem in mingw-gcc
      - fix typedef in cygwin
      6c53d680
  14. 17 Apr, 2016 1 commit
  15. 18 Nov, 2015 1 commit
    • Tom Lee's avatar
      Fix potential race in 'invalid timeout' tests · d4b715f0
      Tom Lee authored
      It's possible for the call to connect() to succeed on the very first
      try, in which case the logic for checking for invalid timeout fields is
      never executed. When this happens, the tests fail because they expect a
      REDIS_ERR_IO but no such failure has occurred.
      
      Tests aside, this is a potential source of irritating and hard-to-find
      intermittent bugs.
      
      This patch forces the validation to occur early so that we get
      predictable behavior whenever an invalid timeout is specified.
      d4b715f0
  16. 16 Sep, 2015 1 commit
  17. 16 Apr, 2015 2 commits
  18. 18 Feb, 2015 1 commit
  19. 22 Jan, 2015 1 commit
  20. 08 Jan, 2015 2 commits
  21. 29 May, 2014 1 commit
  22. 09 Apr, 2014 3 commits
  23. 11 Jul, 2013 2 commits
  24. 01 May, 2013 1 commit
  25. 15 Mar, 2013 1 commit
  26. 23 Feb, 2013 1 commit
  27. 22 Jan, 2013 1 commit
  28. 28 Aug, 2012 1 commit
  29. 20 Dec, 2011 1 commit
  30. 02 Dec, 2011 1 commit
  31. 10 Jul, 2011 2 commits
  32. 09 Jul, 2011 1 commit
    • Pieter Noordhuis's avatar
      Abort on invalid format · 2da784ce
      Pieter Noordhuis authored
      There is no way we can guess the width of the argument when we cannot
      infer its type from the format specifier.
      2da784ce