Comments (4)
Ok great, this crash report is sufficient. I think the issue here is that we don't change that self.state.sentClose
is false before we send the window update. That would likely fix the issue here. It shouldn't be too hard to construct a unit test that triggers this.
from swift-nio-ssh.
Hmm, I'm not observing this crash locally. Can you attach a full backtrace, or even better a crash report?
from swift-nio-ssh.
NIOSSHClient-2023-04-17-164811.ips.zip
You can try to reduce the time before closing:
DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + 0.5) {
print("❌")
_ = childChannel.close(promise: nil)
}
I propose a new version (I think the print
was creating some delay).
from swift-nio-ssh.
I tried a fix. I am not super sure about it:
- Triggering the right action after an event, based on the current state, seems to be the responsibility of the state machine rather the
SSHChildChannel
directly. Should the action be propagated to the state machine and handled by it? - As the window seems to be used from one message reception to the other, if the server keeps sending messages while the client is closed and does not trigger the appropriate window update, could it lead to unpredictable behaviors? I am not a ssh expert.
Let me know. Thanks for your time!
from swift-nio-ssh.
Related Issues (20)
- Setup API breakage testing
- Simple SSH Client port forwarding HOT 4
- Cleanup once NIO adopts Sendable HOT 3
- NIOSSHError.keyExchangeNegotiationFailure HOT 4
- Support keyboard-interactive authentication HOT 3
- iOS: upload file to sshd server HOT 1
- Authentication Failed using Private Key,Public Key HOT 15
- ChannelError: operationUnsupported when executing commands from a daemon HOT 5
- Error when adding swift-nio-ssh HOT 3
- NIOSSHClientUserAuthenticationDelegate Improvement Request: Result Reporting HOT 2
- Support OpenSSH Keys HOT 4
- How to validate host keys (i.e. how to access information about `NIOSSHPublicKey`)? HOT 11
- Client remote port forwarding? HOT 2
- Clients should tolerate arbitrary lines before SSH version in banner
- How to use Swift Nio SSH? HOT 3
- NIOSSHClient gets stucked HOT 12
- Channel closes after 1 command / Executing multiple requests on the same channel HOT 10
- NIOSSHPrivateKey from file/bytes HOT 2
- Child channels can not access their own peerMaxMessageSize HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-nio-ssh.