1. 31 Jan, 2014 1 commit
    • Nenad Merdanovic's avatar
      Add support for listen(2) backlog definition · d76aa96d
      Nenad Merdanovic authored
      In high RPS environments, the default listen backlog is not sufficient, so
      giving users the power to configure it is the right approach, especially
      since it requires only minor modifications to the code.
      d76aa96d
  2. 10 Jan, 2014 2 commits
    • antirez's avatar
      anetResolveIP() prototype added to anet.h. · d4f296bc
      antirez authored
      d4f296bc
    • antirez's avatar
      anetResolveIP() added to anet.c. · 774f0bd4
      antirez authored
      The new function is used when we want to normalize an IP address without
      performing a DNS lookup if the string to resolve is not a valid IP.
      
      This is useful every time only IPs are valid inputs or when we want to
      skip DNS resolution that is slow during runtime operations if we are
      required to block.
      774f0bd4
  3. 08 Jul, 2013 4 commits
    • Geoff Garside's avatar
      Add IPv6 support to sentinel.c. · e04fdf26
      Geoff Garside authored
      This has been done by exposing the anetSockName() function anet.c
      to be used when the sentinel is publishing its existence to the masters.
      
      This implementation is very unintelligent as it will likely break if used
      with IPv6 as the nested colons will break any parsing of the PUBLISH string
      by the master.
      e04fdf26
    • Geoff Garside's avatar
      Add anetTcp6Server() function. · 56df8271
      Geoff Garside authored
      Refactor the common code from anetTcpServer into internal function which
      can be used by both anetTcpServer and anetTcp6Server.
      56df8271
    • Geoff Garside's avatar
      Use inet_ntop(3) in anet. #apichange · ef839f90
      Geoff Garside authored
      Replace inet_ntoa(3) calls with the more future proof inet_ntop(3)
      function which is capable of handling additional address families.
      
      API Change: anetTcpAccept() & anetPeerToString() additional argument
        additional argument required to specify the length of the character
        buffer the IP address is written to in order to comply with
        inet_ntop(3) function semantics.
      ef839f90
    • Geoff Garside's avatar
      Use getaddrinfo(3) in anetResolve. #apichange · 071963c8
      Geoff Garside authored
      Change anetResolve() function to use getaddrinfo(3) to resolve hostnames.
      Resolved hostnames are limited to those reachable by the AF_INET address
      family.
      
      API Change: anetResolve requires additional argument.
        additional argument required to specify the length of the character
        buffer the IP address is written to in order to comply with
        inet_ntop(3) function semantics. inet_ntop(3) replaces inet_ntoa(3)
        as it has been designed to be compatible with more address families.
      071963c8
  4. 05 Jul, 2013 1 commit
  5. 04 Jul, 2013 1 commit
  6. 08 Feb, 2013 1 commit
  7. 05 Feb, 2013 2 commits
    • antirez's avatar
      b70b459b
    • charsyam's avatar
      Turn off TCP_NODELAY on the slave socket after SYNC. · c85647f3
      charsyam authored
      Further details from @antirez:
      
      It was reported by @StopForumSpam on Twitter that the Redis replication
      link was strangely using multiple TCP packets for multiple commands.
      This wastes a lot of bandwidth and is due to the TCP_NODELAY option we
      enable on the socket after accepting a new connection.
      
      However the master -> slave channel is a one-way channel since Redis
      replication is asynchronous, so there is no point in trying to reduce
      the latency, we should aim to reduce the bandwidth. For this reason this
      commit introduces the ability to disable the nagle algorithm on the
      socket after a successful SYNC.
      
      This feature is off by default because the delay can be up to 40
      milliseconds with normally configured Linux kernels.
      c85647f3
  8. 08 Nov, 2012 1 commit
  9. 10 Oct, 2011 1 commit
  10. 21 Apr, 2011 1 commit
  11. 23 Dec, 2010 1 commit
  12. 13 Oct, 2010 2 commits
  13. 01 Aug, 2010 1 commit
  14. 01 Jul, 2010 1 commit
    • antirez's avatar
      redis.c split into many different C files. · e2641e09
      antirez authored
      networking related stuff moved into networking.c
      
      moved more code
      
      more work on layout of source code
      
      SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
      
      cleanly compiling again after the first split, now splitting it in more C files
      
      moving more things around... work in progress
      
      split replication code
      
      splitting more
      
      Sets split
      
      Hash split
      
      replication split
      
      even more splitting
      
      more splitting
      
      minor change
      e2641e09
  15. 19 Feb, 2010 1 commit
  16. 27 Mar, 2009 1 commit
  17. 22 Mar, 2009 1 commit