Open lookfirst opened 5 years ago
Ah, I think I understand now. The issue is that normally the state.Listener, which gets converted into a overseeerListener would block being closed, so the connection remains open. But if it is run in a go routine, that blocking doesn't happen. I wonder how to make that happen still.
The issue is that I would like to be able to start up multiple listeners and have zero downtime restarts.
Using a go routine does not keep the connection alive.
If you do this same program without the go routine wrapper, the connection is not dropped.