I'm almost certainly missing something (apologies for the
stupid question if so), but at the moment
I don't see a way that, given a net.Listener, I can
serve HTTP2 using net/http.
Specifically, is it possible to implement this function:
func serveHTTPTLS(lis net.Listener, h http.Handler, cfg *tls.Config) error
and have it serve secure HTTP2 connections using the given listener?
The ListenAndServeTLS entry point calls the internal method
setupHTTP2_ListenAndServeTLS which then uses the internal
type httpServer as a protocol handler, and I don't see
any path to using that code other than through ListenAndServeTLS.
Without being able to pass in a listener, I don't think there's a way of closing
it preemptively and thus there's no way to close
down the HTTP server cleanly.
cheers,
rog.
--
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].
For more options, visit https://groups.google.com/d/optout.