Re: [go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-12 Thread Péter Szarvas
Wonderful news, thanks for the quick issue opening. I will follow this on github Sean Liao a következőt írta (2024. február 8., csütörtök, 23:43:11 UTC+1): > I've filed it as https://go.dev/issue/65624 > > - sean > > On Thu, Feb 8, 2024 at 6:58 PM Kyle Shannon wrote: > > > > On 2/8/24 11:30, Ja

Re: [go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-08 Thread 'Sean Liao' via golang-nuts
I've filed it as https://go.dev/issue/65624 - sean On Thu, Feb 8, 2024 at 6:58 PM Kyle Shannon wrote: > > On 2/8/24 11:30, Jason Phillips wrote: > > Can you create a small self-contained program that reproduces the issue? The > following program returns 404 locally, as I'd expect, but does get

Re: [go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-08 Thread Patricia Decker
Thanks for that! Adding the additional HandleFunc for "/x/" does result in a 200: https://go.dev/play/p/5upNoAhAlPs On Thu, Feb 8, 2024 at 10:59 AM Kyle Shannon wrote: > On 2/8/24 11:30, Jason Phillips wrote: > > Can you create a small self-contained program that reproduces the issue? > The foll

Re: [go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-08 Thread Kyle Shannon
On 2/8/24 11:30, Jason Phillips wrote: Can you create a small self-contained program that reproduces the issue? The following program returns 404 locally, as I'd expect, but does get killed in the Go playground: https://go.dev/play/p/FigBLK8KrAK Perhaps a simpler reproduction that's runnable on

[go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-08 Thread Jason Phillips
Can you create a small self-contained program that reproduces the issue? The following program returns 404 locally, as I'd expect, but does get killed in the Go playground: https://go.dev/play/p/FigBLK8KrAK Perhaps there's an issue with the Playground networking implementation that's incompatib

[go-nuts] Re: 1.22.0 ServeMux HandleFunc infinite loop

2024-02-08 Thread Patricia Decker
I haven't played around with it yet, but have you tried to separately register /something/ ? mux := http.NewServeMux() mux.HandleFunc("/something/", func...) mux.HandleFunc("/something/{id}/{$}", func...) On Wednesday, February 7, 2024 at 1:21:00 PM UTC-8 Péter Szarvas wrote: > Hello, > > I not