1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-01 13:55:25 -05:00

aggressively close connection when response is done

This commit is contained in:
Darien Raymond
2017-09-27 15:29:00 +02:00
parent 2ce1d8ffa2
commit 109a37fe7e
8 changed files with 59 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ func IgnoreWriterError() CopyOption {
}
}
func UpdateActivity(timer signal.ActivityTimer) CopyOption {
func UpdateActivity(timer signal.ActivityUpdater) CopyOption {
return func(handler *copyHandler) {
handler.onData = append(handler.onData, func(MultiBuffer) {
timer.Update()