mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
close server down link
This commit is contained in:
parent
619c7b9e39
commit
7195c17af6
@ -321,11 +321,11 @@ func (w *ServerWorker) remove(id uint16) {
|
||||
|
||||
func handle(ctx context.Context, s *session, output buf.Writer) {
|
||||
writer := NewResponseWriter(s.id, output)
|
||||
defer writer.Close()
|
||||
|
||||
if err := buf.PipeUntilEOF(signal.BackgroundTimer(), s.input, writer); err != nil {
|
||||
log.Info("Proxyman|Mux|ServerWorker: Session ", s.id, " ends: ", err)
|
||||
}
|
||||
writer.Close()
|
||||
s.closeDownlink()
|
||||
}
|
||||
|
||||
func (w *ServerWorker) run(ctx context.Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user