after using CLI in a loop to update dozens or hundreds of jobs, frequently see (lsof) many many open socks to the jenkins.war process and see (netstat) many tcp sockets in TIME_WAIT.
not sure if I'm interpreting it correctly, but if I am, perhaps
jenkins / cli / src / main / java / hudson / cli / CLI.java
might consider using
with a reasonable short value (10s?) so that when the client finishes, the jenkins.war process can release resources from its end faster?