Juan Calderon-Perez
Juan Calderon-Perez
@conioX How about using ReadTimeout ? ```go func NewWebServer() *Webserver { return &Webserver{app: fiber.New(fiber.Config{ ReadTimeout : 5 * time.Second })} } ```
@conioX Glad you found a solution!
@unusualevent The context object is only valid during the `handler`, once you return from the handler the context is released. This is explain in detail on the documentation: https://docs.gofiber.io/#zero-allocation
@unusualevent Here’s a simplified comparison: Fiber: - Context values are mutable and reused across requests by default to enhance performance. This an inherited behavior from `fasthttp` which Fiber is based...
@unusualevent As stated in the documentation: ```go app := fiber.New(fiber.Config{ Immutable: true, }) ``` You can also make a single value immutable using the util functions: ```go app.Get("/:foo", func(c *fiber.Ctx)...
Any suggestions of what we should add are welcome. The wording in the docs could use some help.
@ReneWerner87 I think we can close this since it requires CGO
Why isnt this fix in the rewrite PR #3016 ? It's a 1 line change @sixcolors
@renanbastos93 Might need to update the tests, the coverage dropped. Existing tests are passing though.
@renanbastos93 Any updates on this?