@fails-components/webtransport-transport-http3-quiche 1.6.7 → 1.6.9

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/CMakeLists.txt CHANGED
@@ -654,6 +654,8 @@ third_party/quiche/quiche/quic/core/qpack/value_splitting_header_list.cc
654
654
  third_party/quiche/quiche/quic/core/qpack/value_splitting_header_list.h
655
655
  third_party/quiche/quiche/quic/core/quic_ack_listener_interface.cc
656
656
  third_party/quiche/quiche/quic/core/quic_ack_listener_interface.h
657
+ third_party/quiche/quiche/quic/core/quic_ack_timestamp_list.cc
658
+ third_party/quiche/quiche/quic/core/quic_ack_timestamp_list.h
657
659
  third_party/quiche/quiche/quic/core/quic_alarm.cc
658
660
  third_party/quiche/quiche/quic/core/quic_alarm.h
659
661
  third_party/quiche/quiche/quic/core/quic_alarm_factory.h
package/build.js CHANGED
@@ -211,6 +211,7 @@ if (argv.length > 2) {
211
211
  const pbargs = []
212
212
  const pbargspre = []
213
213
  if (platform === 'win32') pbargs.push('-t', 'ClangCL')
214
+ if (platform === 'linux') platformargs.push('--prefer-clang')
214
215
  if (env.BUILDARCH) {
215
216
  pbargspre.push('--arch', env.BUILDARCH)
216
217
  platformargs.push('--arch', env.BUILDARCH)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport-transport-http3-quiche",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "A component to add webtransport support (server and client) to node.js, transport using libquiche",
5
5
  "exports": {
6
6
  ".": {
@@ -59,12 +59,13 @@ namespace quic
59
59
  Http3ServerStream::~Http3ServerStream()
60
60
  {
61
61
  // http3_server_backend_->CloseBackendResponseStream(this);
62
- for (auto prom : pending_proms_)
62
+ auto pending_proms_copy = pending_proms_;
63
+ for (auto prom : pending_proms_copy)
63
64
  {
64
65
  std::unique_ptr<Http3ServerBackend::WebTransportResponse> response =
65
66
  std::make_unique<Http3ServerBackend::WebTransportResponse>();
66
67
  response->response_headers[":status"] = "500"; // internal server error, probably implementation on js side
67
- prom->resolve(std::move(response));
68
+ prom->resolve(std::move(response)); // this may mutate pending_proms_
68
69
  }
69
70
  }
70
71