Is there anyway to control the TTL when using Golang http.server?

76 views Asked by At

This is might seem a bit strange but I want to be able to control the TTL of HTTP responses from a golang http.Server. It is okay if the entire server has a global control, I don't need to control it per response. I do that net.Conn has a method called SetHopLimit to control TTL but I cannot figure out anyway to access that from inside a server handler.

0

There are 0 answers