-
Notifications
You must be signed in to change notification settings - Fork 522
Open
Labels
Description
Describe the bug
Tusd Panics randomly when using Creation-With-Upload
To Reproduce
Steps to reproduce the behavior:
- Run Tusd (native or in docker, in my case tested with tusproject/tusd:latest and tusd from https://github.com/tus/tusd/releases/tag/v2.8.0)
- Start upload in creation with upload mode :
curl -s -X POST http://ip.ad.dr.ess/incoming/ \ -H 'Tus-Resumable: 1.0.0' \ -H "Upload-Metadata: filename$(printf %s "$ (basename "$FILE")" | base64)" \ -H "Upload-Length: $(stat -c%s "$FILE")" \ -H "Content-Type: application/offset+octet-stream" \ --data-binary @"$FILE" -o /dev/null -w "%{http_code}\n" - when testing a couple of 100 of uploads at some point it crashes with: fatal error: concurrent map iteration and map write. see full log attached
Expected behavior
not crashing
Setup details
Please provide following details, if applicable to your situation:
- Operating System: [Linux, Docker]
- Used tusd version: [Version: v2.8.0
Commit: 0e52ad6
Date: Wed Apr 2 07:45:39 UTC 2025
] - Used tusd data storage: [disk store]
- Used tusd configuration: [ -upload-dir /data
-port 1080
-behind-proxy
-hooks-dir /hooks
-base-path /incoming/
]
- Used tus client library: curl