From 500e3157b9591357633221f08bc49ba3daddaa47 Mon Sep 17 00:00:00 2001
From: ed
Date: Thu, 18 Aug 2022 19:24:06 +0200
Subject: [PATCH] v1.3.16
---
.gitignore | 2 +-
copyparty/__version__.py | 2 +-
copyparty/web/browser.js | 4 ++--
docs/changelog.md | 18 ++++++++++++++++++
scripts/rls.sh | 12 ++++++++++--
5 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index 6227e9bf..f97a834c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,7 @@ copyparty.egg-info/
/build/
/dist/
/py2/
-/sfx/
+/sfx*
/unt/
/log/
diff --git a/copyparty/__version__.py b/copyparty/__version__.py
index 38d61647..3ac7d09c 100644
--- a/copyparty/__version__.py
+++ b/copyparty/__version__.py
@@ -1,6 +1,6 @@
# coding: utf-8
-VERSION = (1, 3, 15)
+VERSION = (1, 3, 16)
CODENAME = "god dag"
BUILD_DT = (2022, 8, 18)
diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js
index 4c16e181..7ec2ee66 100644
--- a/copyparty/web/browser.js
+++ b/copyparty/web/browser.js
@@ -321,7 +321,7 @@ var Ls = {
"u_emtleak1": "it looks like your webbrowser may have a memory leak;\nplease",
"u_emtleak2": ' switch to https (recommended) or ',
"u_emtleak3": ' ',
- "u_emtleak4": "try the following:\n
Uploads will be a bit slower, but oh well.\nSorry for the trouble!",
+ "u_emtleak4": "try the following:\nF5
to refresh the pagemt
button in the ⚙️ settings
Uploads will be a bit slower, but oh well.\nSorry for the trouble !",
"u_s404": "not found on server",
"u_expl": "explain",
"u_tu": 'F5
to refresh the pagemt
button in the ⚙️ settings
WARNING: turbo enabled, client may not detect and resume incomplete uploads; see turbo-button tooltip
', @@ -663,7 +663,7 @@ var Ls = { "u_emtleak1": "uff, det er mulig at nettleseren din har en minnelekkasje...\nForeslår", "u_emtleak2": ' helst at du bytter til https, eller ', "u_emtleak3": ' at du ', - "u_emtleak4": "prøver følgende:\nmt
bryteren under ⚙️ innstillinger
mt
bryteren under ⚙️ innstillinger
ADVARSEL: turbo er på, avbrutte opplastninger vil muligens ikke oppdages og gjenopptas; hold musepekeren over turbo-knappen for mer info
', diff --git a/docs/changelog.md b/docs/changelog.md index 0982e679..e36a9c06 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,21 @@ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +# 2022-0817-2302 `v1.3.15` pls let me stop finding chrome bugs + +two browser-bugs in two hours, man i just wanna play horizon +* read-only demo server at https://a.ocv.me/pub/demo/ +* latest gzip edition of the sfx: [v1.0.14](https://github.com/9001/copyparty/releases/tag/v1.0.14#:~:text=release-specific%20notes) + +## bugfixes +* chrome randomly running out of memory while hashing files and `mt` is enabled + * the gc suddenly gives up collecting the filereaders + * fixed by reusing a pool of readers instead +* chrome failing to gc Any Buffers At All while hashing files and `mt` is enabled on plaintext http + * this one's funkier, they've repeatedly fixed and broke it like 6 times between chrome 84 and 106 + * looks like it just forgets about everything that's passed into wasm + * no way around it, just show a popup explaining how to disable multithreaded hashing + + + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ # 2022-0815-1825 `v1.3.14` fix windows db diff --git a/scripts/rls.sh b/scripts/rls.sh index c4be3829..077dfb4d 100755 --- a/scripts/rls.sh +++ b/scripts/rls.sh @@ -3,7 +3,11 @@ set -e parallel=2 -cd ~/dev/copyparty/scripts +[ -e make-sfx.sh ] || cd scripts +[ -e make-sfx.sh ] && [ -e deps-docker ] || { + echo cd into the scripts folder first + exit 1 +} v=$1 @@ -36,10 +40,14 @@ $f.py -h >/dev/null printf '\033[%s' s 2r H "0;1;37;44mbruteforcing sfx size -- press enter to terminate" K u "7m $* " K $'27m\n' trap "rm -f .sfx-run; printf '\033[%s' s r u" INT TERM EXIT touch .sfx-run + min=99999999 for ((a=0; a<$parallel; a++)); do while [ -e .sfx-run ]; do CSN=sfx$a ./make-sfx.sh re "$@" - mv $f$a.py $f.$(wc -c <$f$a.py | awk '{print$1}').py + sz=$(wc -c <$f$a.py | awk '{print$1}') + [ $sz -ge $min ] && continue + mv $f$a.py $f.py.$sz + min=$sz done & done read