[GH-ISSUE #564] 关于proxy关闭上下游连接时机的疑问 #455

Open
opened 2026-02-27 23:16:57 +03:00 by kerem · 0 comments
Owner

Originally created by @Gypsying on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/snail007/goproxy/issues/564

github.com/snail007/goproxy@853d324ee6/services/http.go (L144)

在IoBind过程中,不管是上下游的哪一方连接出现err,proxy都会把两个连接都close掉,这个行为是不是不太合理?
不考虑具体的err直接粗暴的关闭连接会不会造成数据丢失的问题?

Originally created by @Gypsying on GitHub (Jun 4, 2024). Original GitHub issue: https://github.com/snail007/goproxy/issues/564 https://github.com/snail007/goproxy/blob/853d324ee629eaae8bcf83f0003eb55afe4f9de1/services/http.go#L144 在IoBind过程中,不管是上下游的哪一方连接出现err,proxy都会把两个连接都close掉,这个行为是不是不太合理? 不考虑具体的err直接粗暴的关闭连接会不会造成数据丢失的问题?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#455
No description provided.