Commit 3a2c79b
committed
go: simplify the Write timeout handling
Previously we had a complicated set of channels and a condition
variable, and the condition variable Wait() was in a goroutine.
Instead the Wait() is now in the main goroutine and an optional
timeout is in an optional goroutine.
Signed-off-by: David Scott <[email protected]>1 parent 43190e9 commit 3a2c79b
1 file changed
+19
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments