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

Broken pipe errors after upgrading to 0.36.0 #893

Closed
dkocher opened this issue Sep 5, 2023 · 6 comments
Closed

Broken pipe errors after upgrading to 0.36.0 #893

dkocher opened this issue Sep 5, 2023 · 6 comments

Comments

@dkocher
Copy link
Contributor

dkocher commented Sep 5, 2023

After upgrading from 0.35.0 to 0.36.0 I see the following failures on the transport socket when sending write requests in integration tests.

2023-09-05 18:02:45,767 [sshj-Reader-localhost/127.0.0.1:2202-1693929765710] ERROR net.schmizz.sshj.transport.TransportImpl - Dying because - Connection reset
java.net.SocketException: Connection reset
	at sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:323) ~[?:?]
	at sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350) ~[?:?]
	at sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Socket.java:982) ~[?:?]
	at net.schmizz.sshj.transport.Reader.run(Reader.java:50) [sshj-0.36.0.jar:?]
@hierynomus
Copy link
Owner

Ai, that does not sound well. Could you try adding an integration test to reproduce this in the project?

@ericparton
Copy link

ericparton commented Sep 7, 2023

I'm also seeing this issue when transferring files with SCP, but only with certain files. If I downgrade to 0.35.0 it goes away

@maltesmann
Copy link

I just made a PR with an integrationtest reproducing this bug. It seems like using compression (more precisely the net.schmizz.sshj.transport.compression.DelayedZlibCompression) breaks the connection here. This is probably related to #772

@hpoettker
Copy link
Contributor

@maltesmann Thanks for the test!

@dkocher @ericparton Can you try whether the change in #901 resolves your issues?

hierynomus pushed a commit that referenced this issue Oct 11, 2023
* add failing integrationtest for #893

* Fix zlib compression

---------

Co-authored-by: Malte Otten <malte.otten@emsysvpp.de>
@hierynomus
Copy link
Owner

I'll keep this one open for a bit longer until @dkocher and/or @ericparton responded, but the PR has been merged already as it fixed the broken test ;)

@dkocher
Copy link
Contributor Author

dkocher commented Oct 11, 2023

I'll keep this one open for a bit longer until @dkocher and/or @ericparton responded, but the PR has been merged already as it fixed the broken test ;)

🎉 I can no longer reproduce with 5d040dd.

@dkocher dkocher closed this as completed Oct 11, 2023
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

5 participants