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

Add initial SFTP client support #16

Merged
merged 11 commits into from
Oct 6, 2024
Merged

Add initial SFTP client support #16

merged 11 commits into from
Oct 6, 2024

Conversation

JamesWrigley
Copy link
Collaborator

Along with a bunch of other fixes/changes.

- Fix callback formatting
- Replace all uses of `@async` with `Threads.@spawn`
Previously we were closing all the client operations while the client handler
task was still running, which could lead to extra messages being processed while
channels etc were being shut down (which could lead to segfaults).
For SFTP support we need to support addings things other than SshChannels to
Session's.
In case it fails when disconnecting/closing.
Sometimes this is useful for debugging when you want to ensure that task
switches aren't occurring.
In practice these can fail for good reason if the remote end has already
disconnected the socket.
@JamesWrigley JamesWrigley self-assigned this Oct 6, 2024
Copy link

codecov bot commented Oct 6, 2024

Codecov Report

Attention: Patch coverage is 81.26464% with 80 lines in your changes missing coverage. Please review.

Project coverage is 59.52%. Comparing base (972f552) to head (29bc60e).
Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
src/sftp.jl 86.90% 33 Missing ⚠️
src/bindings.jl 82.85% 18 Missing ⚠️
src/callbacks.jl 15.00% 17 Missing ⚠️
src/server.jl 65.00% 7 Missing ⚠️
src/channel.jl 64.28% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   53.87%   59.52%   +5.64%     
==========================================
  Files          10       11       +1     
  Lines        2424     2777     +353     
==========================================
+ Hits         1306     1653     +347     
- Misses       1118     1124       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

It seems to be causing something to spin. Should be replaced with a different
design anyway.
@JamesWrigley JamesWrigley merged commit 4dcead5 into master Oct 6, 2024
6 checks passed
@JamesWrigley JamesWrigley deleted the sftp branch October 6, 2024 19:17
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

Successfully merging this pull request may close these issues.

1 participant