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

Remote port forwarding buffers can grow without limits #658

Open
rasantel opened this issue Jan 7, 2021 · 0 comments
Open

Remote port forwarding buffers can grow without limits #658

rasantel opened this issue Jan 7, 2021 · 0 comments

Comments

@rasantel
Copy link
Contributor

rasantel commented Jan 7, 2021

I'm hitting out-of-memory conditions when doing remote port forwarding and the consumer at the end of the tunnel is at times slower than the stream of data coming via ssh.

The buffer for the ChannelInputStream just doubles in size whenever it fills up. I don't see in the implementation any mechanism to slow down the ssh stream.

This is a request to implement such a feature.

hierynomus pushed a commit that referenced this issue Nov 21, 2023
…658) (#913)

* Fix for Remote port forwarding buffers can grow without limits (issue #658)

* Update test classes to use JUnit 5

* Fix MB computation
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

No branches or pull requests

1 participant