FIX: SSH socket reading error 95/12095/2
authorPeter Mikus <pmikus@cisco.com>
Wed, 25 Apr 2018 06:36:52 +0000 (08:36 +0200)
committerPeter Mikus <pmikus@cisco.com>
Wed, 25 Apr 2018 08:10:04 +0000 (08:10 +0000)
commitd1d8f2b387d3fd625ac98bc5bc37ff344b98ead8
tree7f72d5b8523d9df358b6e59f8461a911a2a71d5b
parentd420e98c6838831877f1aad6aa924844fc009195
FIX: SSH socket reading error

Currently if the command timeouts due to the nature of script execution
we are trying to again read from socket after timeout on seesion
expired. This patch is supposed to fix the behaviour and eliminate the
second read from channel after it was cloed.

Change-Id: Ib0028e901eb6ff4d10ca77d2ea19f9e770e6cef4
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/TrafficScriptExecutor.py
resources/libraries/python/ssh.py