mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Enable configurable chunked tus uploads and related robustness changes. - Add AGENT_TUS_CHUNK_SIZE_BYTES env (default 1 MiB, 0 disables chunking) and docs in machinery/.env; ignore machinery/go.work files and set GOWORK=off in VSCode launch to avoid go.work during debugging. - Implement tusChunkSize() and update uploadVaultResumable to send PATCHes in configurable chunk sizes, checkpoint progress after each chunk, and handle partial failures by refreshing retry budget when progress occurs. - Change tusPatch to accept an explicit length and return the advanced offset when a PATCH is fully accepted. - Skip uploads when the recording file no longer exists to avoid infinite retries. - Add tests exercising chunked uploads, chunking-disabled behavior, and tusChunkSize parsing; extend fakeTus test server to record patch sizes. - Reduce noisy info logs to debug in AAC transcoder and WebRTC audio processing. These changes improve resumable upload reliability, allow tuning for proxy/load-balancer limits, and reduce log spam during normal operation.
36 lines
1.0 KiB
JSON
36 lines
1.0 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Golang",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/machinery/main.go",
|
|
"args": [
|
|
"-action",
|
|
"run",
|
|
"-port",
|
|
"8080"
|
|
],
|
|
"envFile": "${workspaceFolder}/machinery/.env.local",
|
|
"buildFlags": "--tags dynamic",
|
|
"env": {
|
|
"GOWORK": "off"
|
|
},
|
|
},
|
|
{
|
|
"name": "Launch React",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}/ui",
|
|
"runtimeExecutable": "yarn",
|
|
"runtimeArgs": [
|
|
"start"
|
|
],
|
|
}
|
|
]
|
|
} |