All checks were successful
Release Tag / release (push) Successful in 14s
- Added upstream server configuration to launch.json for improved connectivity. - Increased HTTP client timeout from 60s to 120s for better handling of slow responses. - Updated server timeouts in steamcache.go: increased ReadTimeout to 30s and WriteTimeout to 60s. - Introduced ReadHeaderTimeout to mitigate header attacks and set MaxHeaderBytes to 1MB. - Improved error logging in the Run method to include HTTP status codes for better debugging. - Adjusted ServeHTTP method to handle root path and metrics endpoint correctly.
67 lines
1.8 KiB
JSON
67 lines
1.8 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 Memory & Disk",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--memory",
|
|
"1G",
|
|
"--disk",
|
|
"10G",
|
|
"--disk-path",
|
|
"tmp/disk",
|
|
"--memory-gc",
|
|
"lfu",
|
|
"--disk-gc",
|
|
"lru",
|
|
"--log-level",
|
|
"debug",
|
|
"--upstream",
|
|
"http://192.168.2.5:80",
|
|
],
|
|
},
|
|
{
|
|
"name": "Launch Disk Only",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--disk",
|
|
"10G",
|
|
"--disk-path",
|
|
"tmp/disk",
|
|
"--disk-gc",
|
|
"hybrid",
|
|
"--log-level",
|
|
"debug",
|
|
"--upstream",
|
|
"http://192.168.2.5:80",
|
|
],
|
|
},
|
|
{
|
|
"name": "Launch Memory Only",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/main.go",
|
|
"args": [
|
|
"--memory",
|
|
"1G",
|
|
"--memory-gc",
|
|
"lfu",
|
|
"--log-level",
|
|
"debug",
|
|
"--upstream",
|
|
"http://192.168.2.5:80",
|
|
],
|
|
}
|
|
]
|
|
} |