hierynomus / hierynomus/sshj

Port forwarding: remote server closes connection, but sshj does not close connection to client

Open
#686 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

TLDR; I have a failing unit test that I think points at a legitimate bug: [https://github.com/tsoiland/sshj/commit/4a7afbcc3ca14fc091a90f9faf74ce146c307328](https://github.com/tsoiland/sshj/commit/4a7afbcc3ca14fc091a90f9faf74ce146c307328)

I originally had a problem running docker exec (http api) through sshj. From what I've been able to gather it streams data back in the http response and probably doesn't know the content length when it writes the response headers, so the client has to wait until the connection is closed by the server.

When I try to tunnel this through sshj the connection between my http client and sshj is never closed and therefore my http client waits forever.

This works with a direct connection to docker's http server.

It also works tunnelled through openssh-client and I can see the FIN, ACKs on both sides of the tunnel with wireshark.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.