fiber: 🤗 [Question]: Timeout is not work in Fiber v2.42.0

Question Description

Timeout is not work in Fiber v2.42.0

For Example In Code Snippet It should return a “request timeout” , if the handler costs more than 1000 Millisecond But it does not work

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v2"
import "log"

func main() {
  app := fiber.New()

  // Like this , the timeout does not work
  app.Get("/abc", timeout.New(xxHandler, time.Millisecond*1000))

  log.Fatal(app.Listen(":3000"))
}

Checklist:

  • I agree to follow Fiber’s Code of Conduct.
  • I have checked for existing issues that describe my questions prior to opening this one.
  • I understand that improperly formatted questions may be closed without explanation.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (17 by maintainers)

Most upvoted comments

@ReneWerner87 not yet, I’ll do whenever I have a time