deadsfu icon indicating copy to clipboard operation
deadsfu copied to clipboard

Replace http.ListenAndServe to enable ReadTimeout and WriteTimeout

Open cameronelliott opened this issue 4 years ago • 0 comments

Instead, create a http.Server instance with ReadTimeout and WriteTimeout and use its corresponding methods, like in the example a few paragraphs above.

https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/

cameronelliott avatar Jun 18 '21 23:06 cameronelliott