1. 26 9月, 2021 1 次提交
  2. 04 7月, 2021 1 次提交
  3. 03 7月, 2021 4 次提交
  4. 01 7月, 2021 7 次提交
  5. 30 6月, 2021 2 次提交
    • T
      Don't fragment memcache get commands with a single key · 3558a390
      Tyson Andre 提交于
      Fragmentation would likely be slower.
      It would involve splitting up the request into multiple smaller
      requests (allocating and zeroing out an array)
      and concatenating strings to rebuild the original request.
      
      Fragmentation is also more likely to be prone to edge cases such as
      those mentioned in https://github.com/twitter/twemproxy/pull/597
      and https://github.com/twitter/twemproxy/pull/595
      3558a390
    • T
      Use nservers instead of ncontinuum · 8ebfd611
      Tyson Andre 提交于
      ncontinuum is `160 * the number of **non-ejected** hosts` for the ketama
      distribution, where 160 is the ketama consistent hashing points per server.
      However, the index returned by msg_backend_idx is a number between
      0..nservers-1.
      
      - This is a waste of time zeroing out 160 times as much memory as needed
      - When there are 0 servers, this previously malloc()ed a pointer of size 0 bytes
        and nutcracker would write to invalid memory.
      
      Also, update redis nosetest expectation because newer redis versions changed the
      error message to mention replica instead.
      
      Fixes https://github.com/twitter/twemproxy/issues/563 for redis and memcached.
      See the discussion there for more details.
      8ebfd611
  6. 22 3月, 2018 2 次提交
  7. 03 8月, 2016 1 次提交
  8. 22 10月, 2015 1 次提交
  9. 02 10月, 2015 1 次提交
  10. 06 9月, 2015 1 次提交
  11. 24 8月, 2015 1 次提交
  12. 16 7月, 2015 1 次提交
  13. 23 6月, 2015 1 次提交
  14. 22 6月, 2015 1 次提交
  15. 21 6月, 2015 3 次提交
  16. 18 6月, 2015 2 次提交
  17. 16 6月, 2015 1 次提交
  18. 20 5月, 2015 1 次提交
  19. 05 3月, 2015 1 次提交
  20. 04 3月, 2015 2 次提交
  21. 24 12月, 2014 2 次提交
  22. 23 12月, 2014 2 次提交
  23. 17 12月, 2014 1 次提交
    • A
      Warning on failed select · b103e75b
      Arne Claus 提交于
      - added a callback that can inspect a req/rsp before it is swallowed
      - this callback is now used with redis so it can check on failed selects
      b103e75b