Hello,
I am new to python. I have been trying to connect to telnet and feed some data from a server. Its working properly. I used the connectionObj.read_until() method to read the data from the server and made the connection as
self.conn = telnetlib.Telnet(so.telnetHost, so.telnetPort)
thats too fine.
But in case of any network failure it throws an error as follows,
Error (10054, 'Connection reset by peer')
How can I overcome this error or how can I reconnect to the server when recovering the network connection?
Any help would be appreciated.
Thanks & Regards,
Sreejith