netmiko icon indicating copy to clipboard operation
netmiko copied to clipboard

Keepalive value of 0 in BaseConnection class causes issues for long-running tasks with intermediary firewalls

Open awilki01 opened this issue 3 years ago • 1 comments

While waiting for an SCP file transfer to complete (over an hour), I will get a 'Socket is closed' exception. When I manually set the keepalive to 30, the problem no longer occurs. I'm requesting a default value of 30 be placed in the library.

awilki01 avatar Nov 02 '22 13:11 awilki01

Keepalive of non-zero would reduce risk of firewalls or network devices themselves from purging the connection.

ktbyers avatar Nov 02 '22 16:11 ktbyers