Hacker symbol

January 27, 2020 ~ 1 min read

Go HTTP timeouts


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.

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.