I found this great article about go's net/http explaining about its timeouts. This post is an effort to actively recall what I learned. A la A mind for numbers.
Things that I learned:
- That the context is a way of making sure a requests gets cancelled or redirected in a timely matter. Each handler request will have its own context.
- The concept of the different read and write timeouts. One wants to make sure that when the client cancels a requests that the server doesn't continue working to call the API or process the request.