As Brian says, that's exactly our situation. On Wednesday, November 19, 2025 at 12:53:46 AM UTC+8 Brian Candler wrote:
> I don't think he wants to re-use the port. > > It sounds like he has code which hunts for a free port to bind to, in the > range 9000 to 9000+N. It does this by binding to a port in that range, and > if it fails, picking a new port and repeating. There are multiple tasks > doing this concurrently, and sometimes, two tasks end up (wrongly) thinking > they have found the same free port. > > At least, that was how I understood the post - I stand to be corrected. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/0237731f-30ce-411b-bc66-6100e8eaa8a3n%40googlegroups.com.
