This commit is contained in:
ed 2022-11-04 20:27:16 +00:00
parent 8bb4f02601
commit 357e7333cc
5 changed files with 6 additions and 7 deletions

View File

@ -144,8 +144,7 @@ recommended additional steps on debian which enable audio metadata and thumbnai
## features ## features
* backend stuff * backend stuff
* ☑ sanic multipart parser * ☑ [multiprocessing](#performance) (actual multithreading)
* ☑ multiprocessing (actual multithreading)
* ☑ volumes (mountpoints) * ☑ volumes (mountpoints)
* ☑ [accounts](#accounts-and-volumes) * ☑ [accounts](#accounts-and-volumes)
* ☑ [ftp server](#ftp-server) * ☑ [ftp server](#ftp-server)

View File

@ -598,8 +598,8 @@ def run_argparse(
ap2.add_argument("--plain-ip", action="store_true", help="when avoiding filename collisions by appending the uploader's ip to the filename: append the plaintext ip instead of salting and hashing the ip") ap2.add_argument("--plain-ip", action="store_true", help="when avoiding filename collisions by appending the uploader's ip to the filename: append the plaintext ip instead of salting and hashing the ip")
ap2.add_argument("--unpost", metavar="SEC", type=int, default=3600*12, help="grace period where uploads can be deleted by the uploader, even without delete permissions; 0=disabled") ap2.add_argument("--unpost", metavar="SEC", type=int, default=3600*12, help="grace period where uploads can be deleted by the uploader, even without delete permissions; 0=disabled")
ap2.add_argument("--reg-cap", metavar="N", type=int, default=38400, help="max number of uploads to keep in memory when running without -e2d; roughly 1 MiB RAM per 600") ap2.add_argument("--reg-cap", metavar="N", type=int, default=38400, help="max number of uploads to keep in memory when running without -e2d; roughly 1 MiB RAM per 600")
ap2.add_argument("--no-fpool", action="store_true", help="disable file-handle pooling -- instead, repeatedly close and reopen files during upload") ap2.add_argument("--no-fpool", action="store_true", help="disable file-handle pooling -- instead, repeatedly close and reopen files during upload (very slow on windows)")
ap2.add_argument("--use-fpool", action="store_true", help="force file-handle pooling, even if copyparty thinks you're better off without -- probably useful on nfs and cow filesystems (zfs, btrfs)") ap2.add_argument("--use-fpool", action="store_true", help="force file-handle pooling, even when it might be dangerous (multiprocessing, filesystems lacking sparse-files support, ...)")
ap2.add_argument("--hardlink", action="store_true", help="prefer hardlinks instead of symlinks when possible (within same filesystem)") ap2.add_argument("--hardlink", action="store_true", help="prefer hardlinks instead of symlinks when possible (within same filesystem)")
ap2.add_argument("--never-symlink", action="store_true", help="do not fallback to symlinks when a hardlink cannot be made") ap2.add_argument("--never-symlink", action="store_true", help="do not fallback to symlinks when a hardlink cannot be made")
ap2.add_argument("--no-dedup", action="store_true", help="disable symlink/hardlink creation; copy file contents instead") ap2.add_argument("--no-dedup", action="store_true", help="disable symlink/hardlink creation; copy file contents instead")

View File

@ -413,7 +413,7 @@ class SvcHub(object):
def kill9(self, delay: float = 0.0) -> None: def kill9(self, delay: float = 0.0) -> None:
if delay > 0.01: if delay > 0.01:
time.sleep(delay) time.sleep(delay)
print("component stuck; performing sigkill") print("component stuck; issuing sigkill")
time.sleep(0.1) time.sleep(0.1)
if ANYWIN: if ANYWIN:

View File

@ -1169,7 +1169,7 @@ class MultipartParser(object):
return field, None return field, None
try: try:
is_webkit = self.headers["user-agent"].lower().find("applewebkit") >= 0 is_webkit = "applewebkit" in self.headers["user-agent"].lower()
except: except:
is_webkit = False is_webkit = False

View File

@ -1237,7 +1237,7 @@ function up2k_init(subtle) {
if (name.startsWith('/')) if (name.startsWith('/'))
name = name.slice(1); name = name.slice(1);
bad.push([dn, name]); bad.push([dn, name + '/']);
read_dirs(null, pf, dirs.slice(1), good, nil, bad, spins); read_dirs(null, pf, dirs.slice(1), good, nil, bad, spins);
}); });
} }