@@ -86,6 +86,7 @@ HTTPTransaction::HTTPTransaction(
86
86
id_(id),
87
87
seqNo_(seqNo),
88
88
transport_(transport),
89
+ wtTransportProvider_(&transport),
89
90
stats_(stats),
90
91
recvWindow_(receiveInitialWindowSize),
91
92
sendWindow_(sendInitialWindowSize),
@@ -1720,7 +1721,7 @@ bool HTTPTransaction::sendDatagram(std::unique_ptr<folly::IOBuf> datagram) {
1720
1721
return false ;
1721
1722
}
1722
1723
1723
- auto sent = transport_. sendDatagram (std::move (datagram));
1724
+ auto sent = wtTransportProvider_-> sendDatagram (std::move (datagram));
1724
1725
1725
1726
if (sent && transportCallback_) {
1726
1727
transportCallback_->datagramBytesGenerated (size);
@@ -2078,8 +2079,10 @@ void HTTPTransaction::onDatagram(
2078
2079
WebTransportImpl::BidiStreamHandle HTTPTransaction::onWebTransportBidiStream (
2079
2080
HTTPCodec::StreamID id) {
2080
2081
if (!handler_) {
2081
- transport_.resetWebTransportEgress (id, WebTransport::kInternalError );
2082
- transport_.stopReadingWebTransportIngress (id, WebTransport::kInternalError );
2082
+ wtTransportProvider_->resetWebTransportEgress (id,
2083
+ WebTransport::kInternalError );
2084
+ wtTransportProvider_->stopReadingWebTransportIngress (
2085
+ id, WebTransport::kInternalError );
2083
2086
return {nullptr , nullptr };
2084
2087
}
2085
2088
refreshTimeout ();
@@ -2094,7 +2097,8 @@ WebTransportImpl::StreamReadHandle* HTTPTransaction::onWebTransportUniStream(
2094
2097
HTTPCodec::StreamID id) {
2095
2098
if (!handler_) {
2096
2099
LOG (ERROR) << " Handler not set" ;
2097
- transport_.stopReadingWebTransportIngress (id, WebTransport::kInternalError );
2100
+ wtTransportProvider_->stopReadingWebTransportIngress (
2101
+ id, WebTransport::kInternalError );
2098
2102
return nullptr ;
2099
2103
}
2100
2104
refreshTimeout ();
0 commit comments