Centos 7, 64bit
jenkins-2.7.4-1.1.noarch (rpm) LTS
If you run a job via the cli with the "-s" switch and the job does not print any output for longer then 5 seconds, the connection dies with "java.io.IOException: Unexpected termination of the channel"
Note: hudson.diyChunking is needed for https://issues.jenkins-ci.org/browse/JENKINS-35197
The Jenkins built in Winstone-Jetty server uses a keep alive of 11,25 seconds (see https://github.com/jenkinsci/jenkins/blob/master/cli/src/main/java/hudson/cli/CLI.java#L156), while the jetty is configured with a 5 second timeout (see here https://github.com/jenkinsci/winstone/blob/master/README.md#command-line-options).
Specify --httpKeepAliveTimeout=15000 to start of Jenkins