We've been using version 2.12.0 of the plugin since quite a while without any issues. After upgrading to 2.23.0 we frequently (every few days) run into the problem that somehow the ssh connection is lost without the underlying ssh implementation recognizing this.
I created a slightly modified version to get more log output and encountered that the read method of the Reader
while (reader.read(cb) != -1)
returns with 0 bytes read.
Could it be that this is related to https://github.com/sonyxperiadev/gerrit-events/pull/58
If yes the real problem is then in the underlying ssh implementation.