1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
Stephen Frost 28b6b2d465
Improve performance of SFTP storage driver.
The initial implementation used simple waits when having to loop due to getting a LIBSSH2_ERROR_EAGAIN, but we don't want to just wait some amount of time, we want to wait until we're able to read or write on the fd that we would have blocked on.

This change removes all of the wait code from the SFTP driver and changes the loops to call the newly introduced storageSftpWaitFd(), which in turn checks with libssh2 to determine the appropriate direction to wait on (read, write, or both) and then calls fdReady() to perform the wait using the provided timeout.

This also removes the need to pass ioSession or timeout down into the SFTP read/write code.
2023-07-07 10:36:15 +02:00
..
certificate SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
code-count v2.46: Block Incremental Backup and SFTP Storage 2023-05-22 11:13:13 +03:00
data
lib/pgBackRestTest Remove unresolved todo from 87087fac. 2023-06-29 11:08:58 +02:00
src Improve performance of SFTP storage driver. 2023-07-07 10:36:15 +02:00
.gitignore
ci.pl Remove user-facing documentation references to --vm=none. 2023-05-23 10:58:51 +03:00
container.yaml Update Fedora test image to Fedora 38. 2023-06-22 18:23:06 +02:00
define.yaml Improve performance of SFTP storage driver. 2023-07-07 10:36:15 +02:00
Dockerfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
test.pl Remove double spaces from comments and documentation. 2023-05-02 12:57:12 +03:00
uncrustify.cfg Check for stray execute permissions in test.pl --code-format. 2023-02-01 12:57:04 +07:00
Vagrantfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00