Join GitHub today
Get out of gerrit event stream loop in illegal state #62
InputStream generated by SSH channel may not reach EOF in illegal SSH connection state change. Due to this, GerritConnection cannot get out of the loop for reading gerrit stream.
This patch checks the state of SSH channel and connection per loop. In addition, send signal to watchdog only if stream read count is > 0 for working watchdog effectively.