Open
Bug 1776411
Opened 2 years ago
Improve writing and reading to the HTTP/2 proxy session implemented in bug 1772205
Categories
(Core :: Networking: HTTP, task, P2)
Core
Networking: HTTP
Tracking
()
NEW
People
(Reporter: dragana, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
The patch from bug 1772205 has the following problem:
reads and rites are sometimes not triggered by the real socket or the lowest HTTP/2 session(the session to the proxy). This is a usual case when TLSFilter is used. The current implementation cannot read or write in this case, it will only call ResumeSend/Recv and TransactionHasDataToWrite/Read. I think this is unnecessarily restrictive:
- In the case of writing data to the network we can just write without waiting for HTTP/2 session to trigger writes. (We need to be careful to make sue that the buffer are not going too much, probably this is something that already works fine)
- In the case of read there are 2 situations:
- a stream has buffered data: in this case we could just read from the buffer
- a stream does not have buffered data: here we need to wait for the proxy session to callback when ithas more data.
You need to log in
before you can comment on or make changes to this bug.
Description
•