Ron Frederick

Results 90 comments of Ron Frederick

Here's some example code for starting up an SSH server on an already accepted socket (named `sock` in this example): ```python asyncssh.connect_reverse( sock=sock, server_host_keys=['ssh_host_key'], authorized_client_keys='ssh_user_ca', process_factory=handle_client) ``` The other arguments...

To make things a bit more obvious, I've decided to add two new top-level methods to AsyncSSH called [run_client()](https://asyncssh.readthedocs.io/en/develop/api.html#run-client) and [run_server()](https://asyncssh.readthedocs.io/en/develop/api.html#run-server). These take a required argument of a connected socket...

These changes are now available in AsyncSSH 2.12.0.

For the S3 use case in particular, I'm not sure this makes sense. According to https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html: > Amazon S3 never adds partial objects; if you receive a success response, Amazon...

Looking at aiohttp, it looks like the reader mixin class provides a default async iterator which returns data a line at a time, similar to what is provided by the...

I did some experimenting with this today, and was able to use the existing _SFTPParallelIO class to build a new variant of the parallel read function. The existing read() will...

This change is now available in the "develop" branch as commit 422dce8. For now, I haven't exposed a `write_parallel()` function as I'm not sure whether that would be useful or...

This is an interesting idea, but I see a few challenges. The main problem is that there are places in the code where stat() is called on the filename to...

Welcome, @kurtschelfthout ! Yes - that was the API I was referring to. You're right that not all servers will support SFTP, but it's worth pointing out that OpenSSH 8.9's...