Hi all - I wrongly assumed that the TimeoutHandler() is supposed to help 
application authors free up resources on the sever for anything running than 
the expected duration of time. However that doesn’t seem to be the case. The 
inner handler continues running, only the client gets a 503 after the duration 
is expired.

So, I guess have two queries:

1. What is the purpose of TimeoutHandler? Is it to just let the client know 
that their request couldn’t be completed and they should just try again?
2. Is there currently another standard library provided solution to wrap a 
handler which will terminate the inner handler function when the duration 
expires?

Thanks,
Amit.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/BC4BEA18-F07D-4597-88B6-B0B5395BEE5E%40gmail.com.

Reply via email to