HttpTransactionParent which plays the same role as nsInputStreamPump in parent process should comply with the stream listener contract totally. Currently, we have some code in HttpTransactionParent that tries to make HttpTransactionParent acts nsInputStreamPump. Maybe the best way is try to reuse the code in [1]. [1] https://searchfox.org/mozilla-central/rev/197210b8c139b64f642edaa3336d26b9c1761568/netwerk/base/nsInputStreamPump.cpp#372-460
Bug 1550426 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
HttpTransactionParent which plays the same role as nsInputStreamPump in parent process should comply with the stream listener contract totally. Currently, we have some code in HttpTransactionParent that tries to make HttpTransactionParent acts like nsInputStreamPump. Maybe the best way is try to reuse the code in [1]. [1] https://searchfox.org/mozilla-central/rev/197210b8c139b64f642edaa3336d26b9c1761568/netwerk/base/nsInputStreamPump.cpp#372-460