Juan Calderon-Perez
Juan Calderon-Perez
@Xuanwo That would be awesome!
Has there been any updates on this? 🤔
> Hi, I start a draft at #18076. Welcome to have a look! > > Adding new opendal-based sinks is quite simple, as it mostly involves configuration and documentation tasks....
@Xuanwo Any updates on your PR? It has been stale for a few months now
@conioX You should be using `ShutdownWithContext()`. ```go OnStop: func(ctx context.Context) error { log.Println("stopping server ...") return webserver.ShutdownWithContext(ctx) }, ```
Why is your server taking `+15secs` to `shutdown` ?
@gofiber/maintainers Any ideas?
@conioX This is probably because of `Keep-Alive`. Try opening the browser, and close it. Wait 5-10 seconds and try to shutdown the server.
@conioX Set your IdleTimeout to 5-10secs. Docs here: https://docs.gofiber.io/api/fiber#idletimeout
```go func NewWebServer() *Webserver { return &Webserver{app: fiber.New(fiber.Config{ IdleTimeout: 5 * time.Second })} } ```