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
F5
to refresh the pagemt
button in the ⚙️ settings
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