This is an automated email from the git hooks/post-receive script.
dcf pushed a commit to branch main in repository pluggable-transports/goptlib.
The following commit(s) were added to refs/heads/main by this push: new 7075f15 Actually use the timeout argument in extOrPortSetup. 7075f15 is described below
commit 7075f1590b3254505fcb82d904a89214535b6014 Author: David Fifield david@bamsoftware.com AuthorDate: Tue Oct 4 22:41:03 2022 -0600
Actually use the timeout argument in extOrPortSetup.
It had hardcoded the same value as was passed in, so there is no change in behavior. --- pt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pt.go b/pt.go index 9f0061e..beea06a 100644 --- a/pt.go +++ b/pt.go @@ -981,7 +981,7 @@ func extOrPortSetMetadata(s io.ReadWriter, addr, methodName string) error {
func extOrPortSetup(s net.Conn, timeout time.Duration, info *ServerInfo, addr, methodName string) error { - err := s.SetDeadline(time.Now().Add(5 * time.Second)) + err := s.SetDeadline(time.Now().Add(timeout)) if err != nil { return err }
tor-commits@lists.torproject.org