Skip to content

Commit

Permalink
remove a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 10, 2024
1 parent 88d41e8 commit 6f82371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (l *Listener) clientIn(data []byte, raddr net.Addr) {
// the context is the address of incoming packet
ctx := raddr
l.watcher.ReadTimeout(ctx, conn, make([]byte, mtuLimit), time.Now().Add(l.timeout))
l.watcher.WriteTimeout(ctx, conn, data, time.Now().Add(l.timeout)) // write needs not to specify the context(where the packet from)
l.watcher.WriteTimeout(ctx, conn, data, time.Now().Add(l.timeout))
}
}

Expand Down

0 comments on commit 6f82371

Please sign in to comment.