@fails-components/webtransport-transport-http3-quiche 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -109,20 +109,6 @@ namespace quic
|
|
|
109
109
|
return stream;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
Http3ServerStream *
|
|
113
|
-
Http3ServerSession::CreateOutgoingUnidirectionalStream()
|
|
114
|
-
{
|
|
115
|
-
if (!ShouldCreateOutgoingUnidirectionalStream())
|
|
116
|
-
{
|
|
117
|
-
return nullptr;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
Http3ServerStream *stream = new Http3ServerStream(
|
|
121
|
-
GetNextOutgoingUnidirectionalStreamId(), this, WRITE_UNIDIRECTIONAL,
|
|
122
|
-
http3_server_backend_);
|
|
123
|
-
ActivateStream(absl::WrapUnique(stream));
|
|
124
|
-
return stream;
|
|
125
|
-
}
|
|
126
112
|
|
|
127
113
|
void Http3ServerSession::OnCanCreateNewOutgoingStream(bool unidirectional) {
|
|
128
114
|
if (SupportsWebTransport()) {
|
package/src/http3serversession.h
CHANGED
|
@@ -63,7 +63,6 @@ namespace quic
|
|
|
63
63
|
QuicSpdyStream *CreateIncomingStream(QuicStreamId id) override;
|
|
64
64
|
QuicSpdyStream *CreateIncomingStream(PendingStream *pending) override;
|
|
65
65
|
QuicSpdyStream *CreateOutgoingBidirectionalStream() override;
|
|
66
|
-
Http3ServerStream *CreateOutgoingUnidirectionalStream() override;
|
|
67
66
|
|
|
68
67
|
// QuicServerSessionBaseMethod:
|
|
69
68
|
std::unique_ptr<QuicCryptoServerStreamBase> CreateQuicCryptoServerStream(
|
|
@@ -138,10 +138,11 @@ namespace quic
|
|
|
138
138
|
while (chunks_.size() > 0)
|
|
139
139
|
{
|
|
140
140
|
auto cur = chunks_.front();
|
|
141
|
-
|
|
141
|
+
absl::Status status =
|
|
142
|
+
WriteIntoStream(*stream_, absl::string_view(cur.buffer, cur.len));
|
|
142
143
|
QUIC_DVLOG(1) << "Attempted writing on WebTransport bidirectional stream "
|
|
143
|
-
<< ", success: " <<
|
|
144
|
-
if (!
|
|
144
|
+
<< ", success: " << status;
|
|
145
|
+
if (!status.ok())
|
|
145
146
|
{
|
|
146
147
|
return;
|
|
147
148
|
}
|
|
@@ -153,8 +154,8 @@ namespace quic
|
|
|
153
154
|
|
|
154
155
|
if (send_fin_)
|
|
155
156
|
{
|
|
156
|
-
|
|
157
|
-
if (
|
|
157
|
+
absl::Status status = SendFinOnStream(*stream_);
|
|
158
|
+
if (status.ok()) {
|
|
158
159
|
fin_was_sent_ = true;
|
|
159
160
|
getJS()->processStreamNetworkFinish(NetworkTask::streamFinal);
|
|
160
161
|
}
|