]> Cypherpunks repositories - gostls13.git/commit
net: hangup TCP connection after Dial timeout in Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Wed, 8 Jul 2020 20:57:10 +0000 (16:57 -0400)
committerDavid du Colombier <0intro@gmail.com>
Fri, 10 Jul 2020 11:32:36 +0000 (11:32 +0000)
commit3a4322627e781c05418a8cc40ebb9f547a6c4ac8
treef14fb62596f4f2264026bab10ed5fe9e61a349ea
parent574dac9d9707ddd35d57aaea646710dfae67bd89
net: hangup TCP connection after Dial timeout in Plan 9

After Dial timeout, force close the TCP connection by writing "hangup"
to the control file. This unblocks the "connect" command if the
connection is taking too long to establish, and frees up the control
file FD.

Fixes #40118

Change-Id: I1cef8539cd9fe0793e32b49c9d0ef636b4b26e1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/241638
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/net/ipsock_plan9.go