comm.tcp.Command.connect : undefined variables
https://gitlab.esrf.fr/bliss/bliss/blob/master/bliss/comm/tcp.py#L109
The Command.connect method raises an exception if called when its socket is already connect.
if self._connected:
prev_ip_host, prev_port = s.getpeername()
should it be
if self._connected:
prev_ip_host, prev_port = self._fd.getpeername()
?
And:
if port != prev_port or (fqdn_host != prev_name and name not in aliaslist):
self.close()
maybe host instead of name?