[go-nuts] Re: Autocert failure with HTTP handler

2021-04-20 Thread Brian Candler
Another way to look at it: https://play.golang.org/p/8c3EgpiXS8e > -- 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 golang-nuts+unsubscr...@googlegroups.com. To

[go-nuts] Re: Autocert failure with HTTP handler

2021-04-19 Thread cpu...@gmail.com
That makes perfect sense as the simple reproducer shows: https://play.golang.org/p/vSEBtdV2CzR Only in this case I didn't see it as there were more go routines alive. Much appreciated, thank you! On Monday, April 19, 2021 at 11:29:31 PM UTC+2 Brian Candler wrote: > As far as I understand it:

[go-nuts] Re: Autocert failure with HTTP handler

2021-04-19 Thread Brian Candler
As far as I understand it: "go foo(bar, baz)" evaluates all the arguments first, *then* starts a goroutine with function foo(val1, val2) Since http.ListenAndServe() never returns [unless it fails to start], it never gets as far as starting a goroutine for log.Fatal, and therefore cannot