1. 08 Jul, 2013 8 commits
    • Geoff Garside's avatar
      Update anetPeerToString to handle AF_INET6 addrs. · 23f4d905
      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.
      23f4d905
    • Geoff Garside's avatar
      Update anetTcpAccept to handle AF_INET6 addresses. · fa723d98
      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.
      fa723d98
    • Geoff Garside's avatar
      Update anetResolve to resolve AF_INET6 as well. · e7b34e8d
      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.
      e7b34e8d
    • 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 a anetTcpServer. · e0cb2435
      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.
      e0cb2435
    • Geoff Garside's avatar
      Use getaddrinfo(3) in anetTcpGenericConnect. · 0e01ce1b
      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.
      0e01ce1b
    • Geoff Garside's avatar
      Add anetSetReuseAddr(err, fd) static function. · 580b7dce
      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.
      580b7dce
    • 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
  2. 05 Jul, 2013 1 commit
  3. 04 Jul, 2013 1 commit
  4. 08 Feb, 2013 2 commits
  5. 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
  6. 19 Jan, 2013 1 commit
  7. 08 Nov, 2012 1 commit
  8. 23 Jul, 2012 1 commit
  9. 11 Apr, 2012 1 commit
  10. 07 Mar, 2012 1 commit
  11. 10 Oct, 2011 1 commit
  12. 21 Apr, 2011 1 commit
  13. 05 Jan, 2011 1 commit
  14. 13 Oct, 2010 3 commits
  15. 01 Aug, 2010 1 commit
  16. 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
  17. 19 Feb, 2010 1 commit
  18. 23 Nov, 2009 1 commit
  19. 11 May, 2009 1 commit
  20. 27 Mar, 2009 2 commits
  21. 22 Mar, 2009 1 commit