pyIntesisHome icon indicating copy to clipboard operation
pyIntesisHome copied to clipboard

Not closing connection after no response.

Open AAlmarwani93 opened this issue 2 years ago • 0 comments

https://github.com/jnimmo/pyIntesisHome/blob/ea027b1d6e57a8bed689acbdeb6c5d5aed2fff0b/pyintesishome/intesisbase.py#L88

In intesis box if you do not receive a response from the server that means the intesis box stopped closed the connection due to a hang. Therefore we need to close the connection and start a new connection which means that we need close the writer after the exception.

i think this is what you need to add in the exception (not a programmer you are free to correct me just a googler) self._writer.writer.close()

Please review this and check if i am right or wrong.

AAlmarwani93 avatar Feb 03 '23 07:02 AAlmarwani93