You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Not sure if this is examples problem or gins problem. )
Hey,
The graceful shutdown example provided in examples/graceful-shutdown does not use gin.Run() and instead calls the http.ListenAndServe() directly.
It looks like gin.Run() also does additional configurations on the engine before starting the server. These methods are private and implementing similar logic without copy/paste is not possible.
Problem: gin.Run() does not expose the server instance anywhere to be able to call Shutdown() on it.
Any ideas ?
The text was updated successfully, but these errors were encountered:
(Not sure if this is examples problem or gins problem. )
Hey,
The graceful shutdown example provided in examples/graceful-shutdown does not use
gin.Run()
and instead calls thehttp.ListenAndServe()
directly.It looks like
gin.Run()
also does additional configurations on the engine before starting the server. These methods are private and implementing similar logic without copy/paste is not possible.Problem:
gin.Run()
does not expose the server instance anywhere to be able to callShutdown()
on it.Any ideas ?
The text was updated successfully, but these errors were encountered: