1. 11 7月, 2013 10 次提交
    • G
      Add static anetV6Only() function. · f6382369
      Geoff Garside 提交于
      This function sets the IPV6_V6ONLY option to 1 to use separate stack
      IPv6 sockets.
      f6382369
    • G
      Change anetTcpGenericConnect to use AF_UNSPEC. · 71795d4e
      Geoff Garside 提交于
      This allows anetTcpGenericConnect to try to connect to AF_INET6
      addresses in addition to any resolved AF_INET addresses.
      71795d4e
    • G
      Update anetPeerToString to handle AF_INET6 addrs. · f1151f86
      Geoff Garside 提交于
      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
    • G
      Update anetTcpAccept to handle AF_INET6 addresses. · fefa1491
      Geoff Garside 提交于
      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
    • G
      Update anetResolve to resolve AF_INET6 as well. · 77ddec85
      Geoff Garside 提交于
      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
    • G
      Use inet_ntop(3) in anet. #apichange · 920ab4c9
      Geoff Garside 提交于
      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
    • G
      Use getaddrinfo(3) in a anetTcpServer. · aee5ee70
      Geoff Garside 提交于
      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
    • G
      Use getaddrinfo(3) in anetTcpGenericConnect. · e50f2c93
      Geoff Garside 提交于
      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
    • G
      Add anetSetReuseAddr(err, fd) static function. · d36dc1fc
      Geoff Garside 提交于
      Extract setting SO_REUSEADDR socket option into separate function
      so the same code can be more easily used by anetCreateSocket and
      other functions.
      d36dc1fc
    • G
      Use getaddrinfo(3) in anetResolve. #apichange · 855ff8df
      Geoff Garside 提交于
      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
  2. 08 7月, 2013 2 次提交
  3. 11 2月, 2013 2 次提交
  4. 05 2月, 2013 2 次提交
    • A
      TCP_NODELAY after SYNC: changes to the implementation. · 5f7dff4d
      antirez 提交于
      5f7dff4d
    • C
      Turn off TCP_NODELAY on the slave socket after SYNC. · 1d80acae
      charsyam 提交于
      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
  5. 19 1月, 2013 1 次提交
    • G
      Fixed many typos. · 1caf0939
      guiquanz 提交于
      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
  6. 09 11月, 2012 1 次提交
  7. 27 9月, 2012 1 次提交
  8. 12 4月, 2012 1 次提交
  9. 07 3月, 2012 1 次提交
  10. 11 10月, 2011 1 次提交
  11. 21 4月, 2011 1 次提交
  12. 05 1月, 2011 1 次提交
  13. 14 10月, 2010 2 次提交
  14. 13 10月, 2010 1 次提交
  15. 02 8月, 2010 1 次提交
  16. 01 7月, 2010 1 次提交
    • A
      redis.c split into many different C files. · e2641e09
      antirez 提交于
      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 2月, 2010 1 次提交
  18. 23 11月, 2009 1 次提交
  19. 11 5月, 2009 1 次提交
  20. 28 3月, 2009 2 次提交
  21. 22 3月, 2009 1 次提交