Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: memory leak fasthttp handler (#311)
We can't use fasthttp.RequestCtx in NewSegmentHeader, this generated an infinite wait in xray/segment.go#L135, because fasthttp.RequestCtx.Done() is not called after finishing the request. The solution was to create a new context to pass to NewSegmentHeader.
- Loading branch information