Comments (6)
Note that File::start_seek does not support SeekFrom::End, since I'm not sure how to implement it in a race-free manner
from openssh-sftp-client.
Also, in
offset can be larger than the self.buffer.len(), this is a UB according to AsyncBufRead interface.
from openssh-sftp-client.
However, our AsyncBufRead impl is also wrong
openssh-sftp-client/src/file/tokio_compat_file.rs
Lines 383 to 391 in ec57895
It should panic if amt is more than self.buffer.len()
from openssh-sftp-client.
What I suggest you to do is to advance the buffer and increase offset manually in
from openssh-sftp-client.
What I suggest you to do is to advance the buffer and increase offset manually in
I think so. I'll complete it tomorrow.
from openssh-sftp-client.
What I suggest you to do is to advance the buffer and increase offset manually in
I think so. I'll complete it tomorrow.
It will also be great if you can fix ::consume
from openssh-sftp-client.
Related Issues (20)
- Invalid response id after closing file in blocking context HOT 3
- Can we implement `AsyncWrite` for `openssh_sftp_client::File`? HOT 6
- FR: Add `path()` method to `DirEntry` HOT 1
- openssh-sftp-clien 0.14 seems broken HOT 6
- `openssh-sftp-error` needs to bump major version HOT 5
- Missing Sftp::from_session HOT 1
- unix only ? HOT 2
- How to check if the sftp session is disconnected HOT 3
- FR: Allow create a metadata::Permissions struct using octets HOT 4
- `check.sh` would fail on Mac systems HOT 3
- Something in `Sftp::new` does not implement `Send` HOT 6
- Performance when downloading files HOT 19
- Misleading naming of `file::write` and `file::write_all` HOT 6
- How can I upload big File HOT 2
- `read_dir` miss some files in multiple file directories HOT 4
- Is it possible to remove lifetime from `File`? HOT 1
- TokioCompatFile has an infinite write buffer size, which is unexpected HOT 9
- exaxmples/ folder demonstrating how to use this crate. HOT 1
- Create remote sftp subsystem error HOT 7
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 openssh-sftp-client.