diff --git a/lnst/Tests/LongLivedConnections.py b/lnst/Tests/LongLivedConnections.py index c84cae213..ff37256d5 100644 --- a/lnst/Tests/LongLivedConnections.py +++ b/lnst/Tests/LongLivedConnections.py @@ -71,7 +71,7 @@ def _stop(self): self._listening_thread.join() self._polling_thread.join() - + self._result = ( True if len(self._connections) == self.params.connections_count else False ) @@ -144,6 +144,7 @@ def _stop(self): def _start_connection(self): sck = socket.socket(self.params.server_ip.family, socket.SOCK_STREAM) + sck.setsockopt(socket.IPPROTO_IP, 0x18, 1) sck.bind( (str(self.params.client_ip), 0) ) # needs to be binded to specific IP to respect flow IPs