Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase default HPN Buffer Size #11

Closed
wants to merge 3 commits into from

Conversation

allanjude
Copy link

CHAN_SES_WINDOW_DEFAULT is now 2mb, so increase the HPN buffer to once again be larger than the default

CHAN_SES_WINDOW_DEFAULT is now 2mb, so increase the HPN buffer to once again be larger than the default
Match the default set in ssh.c
The default in OpenSSH changed from 64KB to 2MB, and this patch bumps the HPN default to 4MB
@rapier1
Copy link
Owner

rapier1 commented Apr 5, 2017

Allan,

Sorry to take so long to reply. There is an annoying but valid reason to keep the default size at 2MB. Older implementations of OpenSSH (3.8 and older) will crash and burn if a buffer size larger than 2MB is advertised. Since we need to maintain backwards compatibility we have to maintain that limit. We could get around this with more explicit version checking. This can be done but I dont' have the spare cycles to work on it at the moment.

Chris

chutz pushed a commit to chutz/openssh-portable that referenced this pull request Apr 19, 2019
Remove unused sKerberosTgtPassing from enum.  From
calestyo via github pull req rapier1#11, ok djm@

OpenBSD-Commit-ID: 1008f8870865a7c4968b7aed402a0a9e3e5b9540
@@ -32,10 +32,10 @@ http://www.psc.edu/networking/projects/hpn-ssh
BUFFER SIZES:

If HPN is disabled the receive buffer size will be set to the
OpenSSH default of 64K.
OpenSSH default of 2MB.
Copy link

@nh2 nh2 Sep 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've extracted this correction into PR #24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants