Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt.Println message: warning: unable to set write deadline #476

Open
joa23 opened this issue Jun 10, 2024 · 1 comment
Open

fmt.Println message: warning: unable to set write deadline #476

joa23 opened this issue Jun 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@joa23
Copy link

joa23 commented Jun 10, 2024

Hi,

When using a chi router I get a fmt.Println message: warning: unable to set write deadline. I understand chi is not implementing this interface but only the go 1.22 router. It just a minor inconvenience but does this need to be logged?
Seems like a non issue and given we have a lot events for along time is noise in the logs file.
Sorry for my lack of knowledge is there any reason using chi vs. go 1.22+ router in huma? The tutorial is using chi are there any limitations e.g. middleware with the go standard router these days?
Thanks.

@danielgtaylor danielgtaylor added the question Further information is requested label Jun 12, 2024
@danielgtaylor
Copy link
Owner

@joa23 interesting, I thought that Chi should support this as it is just using the default http request/response from the standard library. Do you have more info about your setup? Maybe a small example I can use to reproduce?

Generally the Go 1.22 router is great, but middleware handling is a bit annoying so Chi and other routers are a little nicer in that respect. You could definitely give 1.22 a try, I just won't update the tutorial until our minimum version supports the Go 1.22 router (otherwise it might not work for some people).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants