envoy-go-extension
envoy-go-extension copied to clipboard
header write operations should be done in envoy thread
otherwise, there might be a race between go thread write and envoy thread read.
we could resolve it, by:
- buffer the write operations on the Go side,
- passing to envoy thread in batch, by dispatch a post event, before header continue.