mozey / httprouter-util

Example of using httprouter and other useful packages
2 stars 0 forks source link

Harden server for Internet exposure #2

Open mozey opened 1 year ago

mozey commented 1 year ago

Review recommendations made in these articles

mozey commented 1 year ago

From the first link: "package-level convenience functions that bypass http.Server like http.ListenAndServe, http.ListenAndServeTLS and http.Serve are unfit for public Internet servers... Instead, create a http.Server instance with ReadTimeout and WriteTimeout and use its corresponding methods"