Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
251
stars
36
forks
source link
[Feature Request] Fix free-port assignment to actually try to connect #550
Closed
cretz closed 4 months ago
Describe the solution you'd like
We assumed incorrectly that OSs won't give out recently bound ports, but tests reveal it may. Fix https://github.com/temporalio/cli/blob/main/temporalcli/devserver/freeport.go to:
GetFreePort() (int, error)
call and none of that extra port-provider stuffGetFreePort()
listener also accept a socket connection before closing both the listener and socket and returning the portProbably don't even need a separate file anymore, this can be a simple single-method utility with the rest of the dev server stuff