Commit 790c8111 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

Added Ipv6 suppoert (Issue #8)

parent cc4ffb6a
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -68,18 +68,16 @@ class BaseClient(object):
    # defaults
    HOSTNAME = 'localhost'
    PORT = 8123
    CHUNK_SIZE = 4096
    CLUSTER_VERSION = 0
    # development default
    USER_ID = 1
    CLIENT_SECRET = 'asdfasdf'
    CONNECT_TIMEOUT = 0.1
    SOCKET_TIMEOUT = 5.0

    def __init__(self, hostname=HOSTNAME, port=PORT, identity=USER_ID,
                 cluster_version=CLUSTER_VERSION, secret=CLIENT_SECRET,
                 chunk_size=CHUNK_SIZE,
                 connect_timeout=CONNECT_TIMEOUT, socket_timeout=SOCKET_TIMEOUT,
                 chunk_size=common.DEFAULT_CHUNK_SIZE,
                 connect_timeout=common.DEFAULT_CONNECT_TIMEOUT,
                 socket_timeout=common.DEFAULT_SOCKET_TIMEOUT,
                 socket_address=None,
                 socket_port=0):
        self.hostname = hostname
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ import kinetic_pb2 as messages
MAX_KEY_SIZE = 4*1024
MAX_VALUE_SIZE = 1024*1024

DEFAULT_CONNECT_TIMEOUT = 0.1
DEFAULT_SOCKET_TIMEOUT = 5
DEFAULT_CHUNK_SIZE = 4096

class Entry(object):