1. 03 Sep, 2018 1 commit
    • zhaozhao.zz's avatar
      networking: optimize parsing large bulk greater than 32k · 247d2a73
      zhaozhao.zz authored
      If we are going to read a large object from network
      try to make it likely that it will start at c->querybuf
      boundary so that we can optimize object creation
      avoiding a large copy of data.
      
      But only when the data we have not parsed is less than
      or equal to ll+2. If the data length is greater than
      ll+2, trimming querybuf is just a waste of time, because
      at this time the querybuf contains not only our bulk.
      
      It's easy to reproduce the that:
      
      Time1: call `client pause 10000` on slave.
      
      Time2: redis-benchmark -t set -r 10000 -d 33000 -n 10000.
      
      Then slave hung after 10 seconds.
      247d2a73
  2. 31 Aug, 2018 5 commits
  3. 29 Aug, 2018 7 commits
  4. 27 Aug, 2018 8 commits
  5. 26 Aug, 2018 6 commits
  6. 25 Aug, 2018 1 commit
  7. 23 Aug, 2018 1 commit
    • zhaozhao.zz's avatar
      networking: make setProtocolError simple and clear · f2ad89a3
      zhaozhao.zz authored
      Function setProtocolError just records proctocol error
      details in server log, set client as CLIENT_CLOSE_AFTER_REPLY.
      It doesn't care about querybuf sdsrange, because we
      will do it after procotol parsing.
      f2ad89a3
  8. 22 Aug, 2018 1 commit
  9. 21 Aug, 2018 1 commit
    • Oran Agra's avatar
      Fix unstable tests on slow machines. · c8452ab0
      Oran Agra authored
      Few tests had borderline thresholds that were adjusted.
      
      The slave buffers test had two issues, preventing the slave buffer from growing:
      1) the slave didn't necessarily go to sleep on time, or woke up too early,
         now using SIGSTOP to make sure it goes to sleep exactly when we want.
      2) the master disconnected the slave on timeout
      c8452ab0
  10. 14 Aug, 2018 4 commits
  11. 13 Aug, 2018 2 commits
  12. 03 Aug, 2018 3 commits