Skip to content
New issue

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

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

Already on GitHub? # to your account

Port forward to unavailable destination cause dead lock on client side #175

Closed
akandratovich opened this issue Feb 11, 2015 · 1 comment
Closed

Comments

@akandratovich
Copy link
Contributor

Hello, source.

In case, destination in parameters is not available, open channel fails with exception

Opening direct-tcpip channel failed: Connection refused
    at net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel.gotOpenFailure(AbstractDirectChannel.java:64)
    at net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel.gotUnknown(AbstractDirectChannel.java:89)
    at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:193)
    at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:128)
    at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:455)
    at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107)
    at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175)
    at net.schmizz.sshj.transport.Reader.run(Reader.java:61)

DirectTCPIPChannel is not started, socket monitor is not activated and socket is never closed. Client is locked forever.

@hierynomus
Copy link
Owner

Thx for finding this! I'd love a PR to fix :) Else I'll look into it soon.

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

No branches or pull requests

2 participants