Commit 26b646e
committed
quic: avoid deadlock in Endpoint.Close
Don't hold Endpoint.connsMu while calling Conn methods that can
indirectly depend on acquiring it.
Also change test cleanup to not wait for connections to drain
when closing a test Endpoint, removing an unnecessary 0.1s delay
in test runtime.
Fixes golang/go#64982.
Change-Id: If336e63b0a7f5b8d2ef63986d36f9ee38a92c477
Reviewed-on: https://go-review.googlesource.com/c/net/+/554695
Reviewed-by: Jonathan Amsterdam <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>1 parent cb5b10f commit 26b646e
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
| 112 | + | |
109 | 113 | | |
110 | | - | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | | - | |
121 | | - | |
| 128 | + | |
122 | 129 | | |
123 | 130 | | |
124 | | - | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments