Results 11 comments of sado

@kataras in this way , when timeout , i can not get any response and header ```golang srv := &http.Server{ Addr: ":8080", ReadTimeout: 5 * time.Second, WriteTimeout: 10 * time.Second,...

right ![image](https://user-images.githubusercontent.com/51654192/114641495-cc6c1f00-9d04-11eb-84f0-4e52993aec5d.png) i can't find another way to use this original handler `http.TimeoutHandler(next, duration, reason)`

@tuhao1020 in this way, even timeout, the goroutine `go ctx.Next()` would not stop now i try the follow way to handle timeout ```golang ctx,_ := context.withTimeout(.....) c.ResetRequest(c.Request().WithContext(ctx)) done := make(chan...

try it, looking forward to your feedback :)

this change the original handlers, and set it to `doneHandlers`, when `removeHandlers`, it can not find the original handlers ![image](https://user-images.githubusercontent.com/51654192/109260460-1c685280-7839-11eb-9ea5-8e8a6484cd1d.png)

@kataras is this a problem?

here are the packages i used now github.com/kataras/golog v0.0.18 github.com/kataras/iris/v12 v12.1.8 and i updated ```golang package main import ( "fmt" "github.com/kataras/golog" "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/context" ) func main() { app := iris.New()...

here are my codes in `main.go` actually, i updated my packages before ```linux github.com/kataras/golog v0.1.6 github.com/kataras/iris/v12 v12.2.0-alpha.0.20201204104853-3e86301b7a75 ``` ```golang package main import ( "fmt" "github.com/kataras/golog" "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/context" ) func main()...

Thank you for your patience !!!