]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: fix testHandshake close flakes
authorFilippo Valsorda <filippo@golang.org>
Thu, 1 Aug 2024 21:41:13 +0000 (23:41 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 2 Aug 2024 19:22:04 +0000 (19:22 +0000)
commitaac7106cb9b6e59cb16f1c0a1123a67669a4ed2d
tree255a91b0357fc85f6709a65d5635ad6b50d121d2
parent2ca1ae8e09a9f821d4bc04c06b18114eafdea12f
crypto/tls: fix testHandshake close flakes

The flakes were introduced by me in CL 586655. It's unclear why only
FreeBSD seems affected, maybe other TCP stacks handle sending on a
half-closed connection differently, or aren't as quick to propagate the
RST over localhost.

Fixes #68155

Change-Id: I32a1b474a7d6531dbab93910c23568b867629e8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/602615
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/crypto/tls/handshake_test.go