|| at Nov 28, 2012 at 10:34 pm
It should be possible to do that by creating your own net.Listener
then your own http.Server, then calling Server.Serve to join the two
up, if you need to change the underlying listener, then close your
copy of the listener, which will eventually cause the http.Server to
exit, but you can create a new Listener and Server in the mean time.
On Thu, Nov 29, 2012 at 8:42 AM, Alex Sergeyev wrote:
I'm beating my head right now on an issue when http.Server needs to be
reconfigured on a fly - stop listening on given port for example.
Has anyone tried something similar? What did you use to stop "serve"