Request regarding CHAN_INPUT_MAX

Chris Rapier rapier at psc.edu
Fri Apr 10 01:03:35 AEST 2026


Hi all,

Is there any way that the limit of CHAN_INPUT_MAX could be increased?

In channels.h it's set to 16MB.
#define CHAN_INPUT_MAX  (16*1024*1024)

Which is fine for most implementations of SSH but it's causing 
performance degradation when OpenSSH is sending data to an HPN-SSH 
instance. I'm currently dealing with this by limiting the advertised 
window to less than 16MB but that limits throughput in this situations. 
While I'd love it if this was increased to 128MB an increase to 32MB or 
more would help out a lot of my users (people often install HPN-SSH on 
the server side as it provides a throughput boost to any client sending 
data). If HPN-SSH advertises more than that to these clients the 
connection might fail or enter a pathological state in terms of 
performance.

If not I fully understand as this may, in some situations, increase 
memory pressure (see commit 107eb3ee). I just thought I would ask.

Chris


More information about the openssh-unix-dev mailing list