mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5360] [MERGED] fix(sub): set read/write/idle timeouts on the subscription server #5858
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5858
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5360
Author: @n0ctal
Created: 6/15/2026
Status: ✅ Merged
Merged: 6/19/2026
Merged by: @MHSanaei
Base:
main← Head:pr-0012-sub-server-timeouts📝 Commits (1)
f2fab8bfix(sub): set read/write/idle timeouts on the subscription server📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
internal/sub/sub.go(+7 -0)📄 Description
Summary
Sets read/write/idle timeouts on the public subscription HTTP server.
Why
The subscription server is the most exposed (public) listener and was created with no timeouts, leaving it open to slow-header / Slowloris exhaustion. The panel server already sets these.
Scope
ReadHeaderTimeout/ReadTimeout/WriteTimeout/IdleTimeoutinternal/web/web.goValidation
go build/go vetcleanRisk
Low. Conservative timeouts mirroring an already-shipped server on the same codebase.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.