@fails-components/webtransport-transport-http3-quiche 1.4.4 → 1.4.6

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
@@ -33,11 +33,20 @@ add_subdirectory(third_party/abseil-cpp EXCLUDE_FROM_ALL)
33
33
 
34
34
  # include protobuf
35
35
  SET(protobuf_WITH_ZLIB OFF CACHE BOOL "Build with zlib support")
36
- SET(protobuf_BUILD_TESTS OFF CACHE BOOL "Build tests")
36
+ SET(protobuf_BUILD_TESTS OFF CACHE BOOL "Build tests off")
37
+ set(protobuf_INSTALL OFF CACHE BOOL "Install protobuf off" FORCE)
37
38
  add_subdirectory(third_party/protobuf EXCLUDE_FROM_ALL)
38
- IF(APPLE)
39
- set_target_properties(protoc libprotoc libprotobuf PROPERTIES OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "Build architectures for Mac OS X" FORCE )
40
- ENDIF(APPLE)
39
+ if(APPLE)
40
+ execute_process(
41
+ COMMAND uname -m
42
+ OUTPUT_VARIABLE HOST_ARCH
43
+ OUTPUT_STRIP_TRAILING_WHITESPACE
44
+ )
45
+ set_target_properties(protoc libprotoc libprotobuf
46
+ PROPERTIES
47
+ OSX_ARCHITECTURES "${HOST_ARCH}"
48
+ )
49
+ endif()
41
50
 
42
51
  IF (WIN32)
43
52
  add_compile_definitions(WIN32_LEAN_AND_MEAN NOGDI)
@@ -63,9 +72,9 @@ endif(COMMAND cmake_policy)
63
72
 
64
73
 
65
74
  #protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS
66
- #third_party/quiche/quiche/quic/core/proto/cached_network_parameters.proto
67
- #third_party/quiche/quiche/quic/core/proto/crypto_server_config.proto
68
- #third_party/quiche/quiche/quic/core/proto/source_address_token.proto)
75
+ #third_party/quiche/quiche//proto/cached_network_parameters.proto
76
+ #third_party/quiche/quiche//proto/crypto_server_config.proto
77
+ #third_party/quiche/quiche//proto/source_address_token.proto)
69
78
 
70
79
 
71
80
 
@@ -91,12 +100,12 @@ platform/quiche_platform_impl/quiche_server_stats_impl.h
91
100
  platform/quiche_platform_impl/quiche_flag_utils_impl.h
92
101
  #protofiles
93
102
  #${PROTO_SRCS}
94
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/cached_network_parameters.pb.h
95
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/crypto_server_config.pb.h
96
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/source_address_token.pb.h
97
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/cached_network_parameters.pb.cc
98
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/crypto_server_config.pb.cc
99
- #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche/quic/core/proto/source_address_token.pb.cc
103
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/cached_network_parameters.pb.h
104
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/crypto_server_config.pb.h
105
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/source_address_token.pb.h
106
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/cached_network_parameters.pb.cc
107
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/crypto_server_config.pb.cc
108
+ #${CMAKE_CURRENT_BINARY_DIR}/third_party/quiche/quiche//proto/source_address_token.pb.cc
100
109
  # url file
101
110
  third_party/googleurl/base/debug/crash_logging.cc
102
111
  third_party/googleurl/base/debug/crash_logging.h
@@ -120,6 +129,7 @@ third_party/googleurl/url/url_canon_etc.cc
120
129
  third_party/googleurl/url/url_canon_fileurl.cc
121
130
  third_party/googleurl/url/url_canon_internal.h
122
131
  third_party/googleurl/url/url_canon_mailtourl.cc
132
+ third_party/googleurl/url/url_canon_non_special_url.cc
123
133
  third_party/googleurl/url/url_canon_pathurl.cc
124
134
  third_party/googleurl/url/url_canon_path.cc
125
135
  third_party/googleurl/url/url_canon_relative.cc
@@ -128,7 +138,7 @@ third_party/googleurl/url/url_parse_internal.h
128
138
  third_party/googleurl/url/url_parse_file.cc
129
139
  third_party/googleurl/url/url_canon_host.cc
130
140
  third_party/googleurl/url/url_canon_ip.cc
131
- third_party/googleurl/url/url_constants.cc
141
+ third_party/googleurl/url/url_constants.h
132
142
  third_party/googleurl/url/url_features.cc
133
143
  third_party/googleurl/url/url_features.h
134
144
  third_party/googleurl/url/url_util.cc
@@ -331,7 +341,6 @@ third_party/quiche/quiche/http2/hpack/hpack_output_stream.cc
331
341
  third_party/quiche/quiche/http2/hpack/hpack_output_stream.h
332
342
  third_party/quiche/quiche/http2/hpack/hpack_static_table.cc
333
343
  third_party/quiche/quiche/http2/hpack/hpack_static_table.h
334
- third_party/quiche/quiche/http2/hpack/hpack_static_table_entries.inc
335
344
  third_party/quiche/quiche/http2/hpack/http2_hpack_constants.cc
336
345
  third_party/quiche/quiche/http2/hpack/http2_hpack_constants.h
337
346
  third_party/quiche/quiche/http2/hpack/huffman/hpack_huffman_decoder.cc
@@ -349,6 +358,8 @@ third_party/quiche/quiche/http2/hpack/varint/hpack_varint_encoder.h
349
358
  #third_party/quiche/quiche/quic/bindings/quic_libevent.cc
350
359
  third_party/quiche/quiche/quic/core/chlo_extractor.cc
351
360
  third_party/quiche/quiche/quic/core/chlo_extractor.h
361
+ third_party/quiche/quiche/quic/core/quic_force_blockable_packet_writer.cc
362
+ third_party/quiche/quiche/quic/core/quic_force_blockable_packet_writer.h
352
363
  third_party/quiche/quiche/quic/core/quic_ping_manager.cc
353
364
  third_party/quiche/quiche/quic/core/quic_ping_manager.h
354
365
  third_party/quiche/quiche/quic/core/congestion_control/bandwidth_sampler.cc
@@ -545,6 +556,8 @@ third_party/quiche/quiche/quic/core/http/http_decoder.h
545
556
  third_party/quiche/quiche/quic/core/http/http_encoder.cc
546
557
  third_party/quiche/quiche/quic/core/http/http_encoder.h
547
558
  third_party/quiche/quiche/quic/core/http/http_frames.h
559
+ third_party/quiche/quiche/quic/core/http/quic_connection_migration_manager.cc
560
+ third_party/quiche/quiche/quic/core/http/quic_connection_migration_manager.h
548
561
  third_party/quiche/quiche/quic/core/http/quic_header_list.cc
549
562
  third_party/quiche/quiche/quic/core/http/quic_header_list.h
550
563
  third_party/quiche/quiche/quic/core/http/quic_headers_stream.cc
@@ -559,6 +572,8 @@ third_party/quiche/quiche/quic/core/http/quic_server_session_base.cc
559
572
  third_party/quiche/quiche/quic/core/http/quic_server_session_base.h
560
573
  third_party/quiche/quiche/quic/core/http/quic_spdy_client_session.cc
561
574
  third_party/quiche/quiche/quic/core/http/quic_spdy_client_session.h
575
+ third_party/quiche/quiche/quic/core/http/quic_spdy_client_session_with_migration.cc
576
+ third_party/quiche/quiche/quic/core/http/quic_spdy_client_session_with_migration.h
562
577
  third_party/quiche/quiche/quic/core/http/quic_spdy_client_session_base.cc
563
578
  third_party/quiche/quiche/quic/core/http/quic_spdy_client_session_base.h
564
579
  third_party/quiche/quiche/quic/core/http/quic_spdy_client_stream.cc
@@ -722,6 +737,8 @@ third_party/quiche/quiche/quic/core/quic_packet_number.h
722
737
  third_party/quiche/quiche/quic/core/quic_packet_reader.cc
723
738
  third_party/quiche/quiche/quic/core/quic_packet_reader.h
724
739
  third_party/quiche/quiche/quic/core/quic_packet_writer.h
740
+ third_party/quiche/quiche/quic/core/quic_packet_writer_wrapper.cc
741
+ third_party/quiche/quiche/quic/core/quic_packet_writer_wrapper.h
725
742
  third_party/quiche/quiche/quic/core/quic_packets.cc
726
743
  third_party/quiche/quiche/quic/core/quic_packets.h
727
744
  third_party/quiche/quiche/quic/core/quic_path_validator.cc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport-transport-http3-quiche",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "A component to add webtransport support (server and client) to node.js, transport using libquiche",
5
5
  "exports": {
6
6
  ".": {
@@ -154,7 +154,7 @@ namespace quic
154
154
  QuicTransportVersion version, int n)
155
155
  {
156
156
  int num = n;
157
- if (!VersionUsesHttp3(version))
157
+ if (!!VersionIsIetfQuic(version))
158
158
  {
159
159
  num++;
160
160
  }
@@ -9,10 +9,10 @@ namespace quic
9
9
 
10
10
  Http3WTSession::Visitor::~Visitor()
11
11
  {
12
- // printf("~Visitor %d %x %x\n", getpid(), this, session_);
12
+ // printf("Session ~Visitor %d %x %x\n", getpid(), this, session_);
13
13
  Http3WTSessionJS *sessobj = session_->getJS();
14
14
  if (sessobj) {
15
- session_->getJS()->Unref();
15
+ sessobj->Unref();
16
16
  } else
17
17
  delete session_;
18
18
  session_ = nullptr;
@@ -41,6 +41,7 @@ namespace quic
41
41
  }
42
42
  else
43
43
  {
44
+ delete stream_;
44
45
  stream_->stream_ = nullptr;
45
46
  }
46
47
  }