Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MicroBin doesn't seem to make use of it's threads, .. #270

Open
Ofloo opened this issue Jul 30, 2024 · 0 comments
Open

MicroBin doesn't seem to make use of it's threads, .. #270

Ofloo opened this issue Jul 30, 2024 · 0 comments

Comments

@Ofloo
Copy link

Ofloo commented Jul 30, 2024

Describe the bug

When uploading files or posting messages, it appears to be single-threaded, despite setting the Docker variable MICROBIN_THREADS to 4. This issue is most noticeable during file uploads; if I upload a file and then post a text message, the text message waits until the upload is complete before being posted. The page only refreshes or loads after the upload finishes.

To Reproduce
Steps to reproduce the behavior:

current configuration:
´´´
MICROBIN_THREADS=4
MICROBIN_HIGHLIGHTSYNTAX=true
MICROBIN_EDITABLE=true
MICROBIN_FOOTER_TEXT="xxxxx"
MICROBIN_PUBLIC_PATH="xxxxx"
MICROBIN_QR=true
MICROBIN_PRIVATE=true
MICROBIN_HIDE_LOGO=true
MICROBIN_HIDE_HEADER=false
MICROBIN_HIDE_FOOTER=false
MICROBIN_MAX_FILE_SIZE_ENCRYPTED_MB=128
MICROBIN_MAX_FILE_SIZE_UNENCRYPTED_MB=256
MICROBIN_WIDTH=1080
RUST_BACKTRACE=full
MICROBIN_ETERNAL_PASTA=true
MICROBIN_ADMIN_USERNAME=xxxxx
MICROBIN_ADMIN_PASSWORD=xxxxx
MICROBIN_ENABLE_READONLY=true
MICROBIN_READONLY=true
MICROBIN_NO_FILE_UPLOAD=false
´´´
run docker compose with current variables, ..
open 2 sessions one with big file upload and other with just text, load both pages in first load file and start upload, during upload post new msg on second session and see it will wait until the file upload has finished.

Expected behavior
I would expect since there's 4 threads that it would continue to work without being bothered by the file upload.

Screenshots

Desktop (please complete the following information):

  • OS: ubuntu 24.04, windows 10
  • Browser firefox,chrome
  • Version ff 128.0.3, chrome 127.0.6533.72

Smartphone (please complete the following information):

Additional context
Running stack from portainer, Docker version 26.1.0, build 9714adc, this is behind haproxy, however i've tested this behaviour directly does the same thing only pages didn't load because probably MICROBIN_PUBLIC_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant