On 27 September 2016 at 13:30, roger peppe <[email protected]> wrote:
> 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.

As usual, I was indeed missing something trivial. It seems I can pass
in a tls.Listener and set http.Server.TLSConfig to the config used to create
the listener, and it will all work OK as long as I've got "h2" in
the tls.Config.NextProtos slice.

Sorry for the noise.

  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.

Reply via email to