Use context in your HTTP handlers
Let's consider a simple webserver that runs a task. The task can be anything like a time consuming computation, a database query.
You need to be able to do two things:
when the client drops the connection while the task is running terminate the task...
blog.gkomninos.com3 min read