@fails-components/webtransport-transport-http3-quiche 1.6.8 → 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/build.js +1 -0
- package/package.json +1 -1
- package/src/http3serverstream.cc +3 -2
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
package/src/http3serverstream.cc
CHANGED
|
@@ -59,12 +59,13 @@ namespace quic
|
|
|
59
59
|
Http3ServerStream::~Http3ServerStream()
|
|
60
60
|
{
|
|
61
61
|
// http3_server_backend_->CloseBackendResponseStream(this);
|
|
62
|
-
|
|
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
|
|