diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-07 12:46:19 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-07 12:46:19 +0000 |
| commit | e362d060a47ec3c7f487fa8e37eddbc72ac02d13 (patch) | |
| tree | 9bba879b213982bac78db424ea595e7dbee9e034 /methods/ftp.cc | |
| parent | bc1fbd12789bfebf225be7af5052840a6add21e2 (diff) | |
| parent | a05376bca3649da9e8ca2c48836aad1d27f7d1db (diff) | |
Merge branch 'rwl' into 'main'
Bump read()/write() loop buffers from 4k to APT_BUFFER_SIZE (64k). Bump FileFdPrivate's read()/discard buffer from 1k to APT_BUFFER_SIZE (64k)
See merge request apt-team/apt!381
Diffstat (limited to 'methods/ftp.cc')
| -rw-r--r-- | methods/ftp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc index 379bf32b6..5ceae4d70 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -936,7 +936,7 @@ bool FTPConn::Get(const char *Path,FileFd &To,unsigned long long Resume, return false; // Copy loop - unsigned char Buffer[4096]; + unsigned char Buffer[APT_BUFFER_SIZE]; while (1) { // Wait for some data.. |
