1. 29 Oct, 2014 2 commits
  2. 27 Aug, 2014 1 commit
  3. 26 Jun, 2014 1 commit
  4. 22 May, 2014 1 commit
  5. 31 Jan, 2014 1 commit
    • Nenad Merdanovic's avatar
      Add support for listen(2) backlog definition · 8dda9dbe
      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.
      8dda9dbe
  6. 13 Jan, 2014 1 commit
    • antirez's avatar
      anetResolveIP() added to anet.c. · 2e0ba7bb
      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.
      2e0ba7bb
  7. 25 Dec, 2013 4 commits
  8. 11 Jul, 2013 14 commits
    • antirez's avatar
      anet.c: save some vertical space. · 8669e709
      antirez authored
      8669e709
    • antirez's avatar
      anet.c: use SO_REUSEADDR when creating listening sockets. · 9e089e7c
      antirez authored
      It used to be ok, but the socket option was removed when adding IPv6
      support.
      9e089e7c
    • antirez's avatar
      IPv6: bind IPv4 and IPv6 interfaces by default. · 2e75d394
      antirez authored
      2e75d394
    • Geoff Garside's avatar
      Add anetTcp6Server() function. · fd8a6ae7
      Geoff Garside authored
      Refactor the common code from anetTcpServer into internal function which
      can be used by both anetTcpServer and anetTcp6Server.
      fd8a6ae7
    • Geoff Garside's avatar
      Add static anetV6Only() function. · f6382369
      Geoff Garside authored
      This function sets the IPV6_V6ONLY option to 1 to use separate stack
      IPv6 sockets.
      f6382369
    • Geoff Garside's avatar
      Change anetTcpGenericConnect to use AF_UNSPEC. · 71795d4e
      Geoff Garside authored
      This allows anetTcpGenericConnect to try to connect to AF_INET6
      addresses in addition to any resolved AF_INET addresses.
      71795d4e
    • Geoff Garside's avatar
      Update anetPeerToString to handle AF_INET6 addrs. · f1151f86
      Geoff Garside authored
      Change the sockaddr_in to sockaddr_storage which is capable of storing
      both AF_INET and AF_INET6 sockets. Uses the sockaddr_storage ss_family
      to correctly return the printable IP address and port.
      f1151f86
    • Geoff Garside's avatar
      Update anetTcpAccept to handle AF_INET6 addresses. · fefa1491
      Geoff Garside authored
      Change the sockaddr_in to sockaddr_storage which is capable of storing
      both AF_INET and AF_INET6 sockets. Uses the sockaddr_storage ss_family
      to correctly return the printable IP address and port.
      fefa1491
    • Geoff Garside's avatar
      Update anetResolve to resolve AF_INET6 as well. · 77ddec85
      Geoff Garside authored
      Change the getaddrinfo(3) hints family from AF_INET to AF_UNSPEC to
      allow resolution of IPv6 addresses as well as IPv4 addresses. The
      function will return the IP address of whichever address family is
      preferenced by the operating system. Most current operating systems
      will preference AF_INET6 over AF_INET.
      
      Unfortunately without attempting to establish a connection to the
      remote address we can't know if the host is capable of using the
      returned IP address. It might be desirable to have anetResolve
      accept an additional argument specifying the AF_INET/AF_INET6 address
      the caller would like to receive. Currently though it does not appear
      as though the anetResolve function is ever used within Redis.
      77ddec85
    • Geoff Garside's avatar
      Use inet_ntop(3) in anet. #apichange · 920ab4c9
      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.
      920ab4c9
    • Geoff Garside's avatar
      Use getaddrinfo(3) in a anetTcpServer. · aee5ee70
      Geoff Garside authored
      Change anetTcpServer() function to use getaddrinfo(3) to perform
      address resolution, socket creation and binding. Resolved addresses
      are limited to those reachable by the AF_INET address family.
      aee5ee70
    • Geoff Garside's avatar
      Use getaddrinfo(3) in anetTcpGenericConnect. · e50f2c93
      Geoff Garside authored
      Change anetTcpGenericConnect() function to use getaddrinfo(3) to
      perform address resolution, socket creation and connection. Resolved
      addresses are limited to those reachable by the AF_INET family.
      e50f2c93
    • Geoff Garside's avatar
      Add anetSetReuseAddr(err, fd) static function. · d36dc1fc
      Geoff Garside authored
      Extract setting SO_REUSEADDR socket option into separate function
      so the same code can be more easily used by anetCreateSocket and
      other functions.
      d36dc1fc
    • Geoff Garside's avatar
      Use getaddrinfo(3) in anetResolve. #apichange · 855ff8df
      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.
      855ff8df
  9. 08 Jul, 2013 2 commits
  10. 11 Feb, 2013 2 commits
  11. 05 Feb, 2013 2 commits
    • antirez's avatar
      5f7dff4d
    • charsyam's avatar
      Turn off TCP_NODELAY on the slave socket after SYNC. · 1d80acae
      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.
      1d80acae
  12. 19 Jan, 2013 1 commit
    • guiquanz's avatar
      Fixed many typos. · 1caf0939
      guiquanz authored
      Conflicts fixed, mainly because 2.8 has no cluster support / files:
      	00-RELEASENOTES
      	src/cluster.c
      	src/crc16.c
      	src/redis-trib.rb
      	src/redis.h
      1caf0939
  13. 08 Nov, 2012 1 commit
  14. 27 Sep, 2012 1 commit
  15. 11 Apr, 2012 1 commit
  16. 07 Mar, 2012 1 commit
  17. 10 Oct, 2011 1 commit
  18. 21 Apr, 2011 1 commit
  19. 05 Jan, 2011 1 commit
  20. 13 Oct, 2010 1 commit