These are chat archives for gin-gonic/gin

Jul 2017
Jul 11 2017 17:02
Hey guys, I have a server that must reply in 100ms. Sometimes ioutil.ReadAll takes much longer to read client's request body. I tried wrapping it to select with goroutine and timeout channel but I still see that request takes more time than allowed in tracing. What is the best way to guarantee fixed request processing time? I simply return handler function on timeout.