envoy-go-extension icon indicating copy to clipboard operation
envoy-go-extension copied to clipboard

header write operations should be done in envoy thread

Open doujiang24 opened this issue 1 year ago • 0 comments

otherwise, there might be a race between go thread write and envoy thread read.

we could resolve it, by:

  1. buffer the write operations on the Go side,
  2. passing to envoy thread in batch, by dispatch a post event, before header continue.

doujiang24 avatar Oct 25 '22 11:10 doujiang24