Hello,
Based on those lines implementing the context.Context
interface, Gin should either proxy those calls to c.Request.Context()
or otherwise not implement context.Context
at all. This leads to mistakes and errors since one can think Gin's context will behave as a request context...
Same with the value storage which should also go into the request context in my opinion if you really want to implement context.Context
.
Comment From: kszafran
This has been solved by https://github.com/gin-gonic/gin/pull/2769, but weirdly it's not present in v1.7.3.
Comment From: appleboy
release in v1.8.0