Hi HTTP/2 hackers,

I’m fighting with #2795. And I’m really confused by
`Http2Stream::update_write_request()`.
Why do we need to copy over data from `write_vio` to `response_buffer`?
(
https://github.com/apache/trafficserver/blob/master/proxy/http2/Http2Stream.cc#L538-L556
 )
It looks like this makes things really complicated. I'd like to avoid this
copy.

Backgrounds:
The root cause of #2795 is described on #2837. The solution looks making
`write_vio.ndone` accurate.
If we can avoid the copy, `Http2Stream::update_write_request()` will be
simple and we can easily fix the bug.

- https://github.com/apache/trafficserver/issues/2795
- https://github.com/apache/trafficserver/pull/2837

Thanks,
Masaori

Reply via email to