@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport-transport-http3-quiche",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A component to add webtransport support (server and client) to node.js, transport using libquiche",
5
5
  "exports": {
6
6
  ".": {
@@ -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()) {
@@ -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
- bool success = stream_->Write(absl::string_view(cur.buffer, cur.len));
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: " << (success ? "yes" : "no");
144
- if (!success)
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
- bool success = stream_->SendFin();
157
- if (success) {
157
+ absl::Status status = SendFinOnStream(*stream_);
158
+ if (status.ok()) {
158
159
  fin_was_sent_ = true;
159
160
  getJS()->processStreamNetworkFinish(NetworkTask::streamFinal);
160
161
  }