You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
The test occasionally fails with:
```
Received unexpected error:
http get: Get "http://localhost:9201/api/services": dial tcp [::1]:9201: connect: connection refused
```
The server listen and client connect, which run in separate goroutines,
race against one another. Occasionally, the client connect is faster
than the server listen, causing the above error.
By moving the call to `net.Listen` out of the goroutine, we ensure that
both threads of execution must wait on the socket listen to complete
before proceeding, eliminating the race.
0 commit comments