@@ -91,14 +91,15 @@ cdef class ThinConnImpl(BaseConnImpl):
9191 cdef int _connect_with_address(self , Address address,
9292 Description description,
9393 ConnectParamsImpl params,
94+ str connect_string,
9495 bint raise_exception) except - 1 :
9596 """
9697 Internal method used for connecting with the given description and
9798 address.
9899 """
99100 try :
100101 self ._protocol._connect_phase_one(self , params, description,
101- address)
102+ address, connect_string )
102103 except exceptions.DatabaseError:
103104 if raise_exception:
104105 raise
@@ -130,10 +131,12 @@ cdef class ThinConnImpl(BaseConnImpl):
130131 uint32_t num_attempts = description.retry_count + 1
131132 uint32_t num_lists = len (address_lists)
132133 AddressList address_list
134+ str connect_string
133135 Address address
134136 # Retry connecting to the socket if an attempt fails and retry_count
135137 # is specified in the connect string. If an attempt succeeds, return
136138 # the socket and the valid address object.
139+ connect_string = _get_connect_data(description)
137140 for i in range (num_attempts):
138141 # Iterate through each address_list in the description. If the
139142 # description level load_balance is on, keep track of the least
@@ -161,7 +164,7 @@ cdef class ThinConnImpl(BaseConnImpl):
161164 and j == num_lists - 1 \
162165 and k == num_addresses - 1
163166 self ._connect_with_address(address, description, params,
164- raise_exc)
167+ connect_string, raise_exc)
165168 if self ._protocol._in_connect:
166169 continue
167170 address_list.lru_index = (idx1 + 1 ) % num_addresses
0 commit comments