fix(tls/socket/fetch) shutdown fix + ref counted context (#12925)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Ciro Spaciari
2024-07-31 05:41:54 +00:00
committed by GitHub
parent 1c3354bc95
commit 1c648063fa
31 changed files with 519 additions and 493 deletions

View File

@@ -1981,7 +1981,7 @@ pub const Example = struct {
HTTP.FetchRedirect.follow,
);
async_http.client.progress_node = progress;
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
const response = try async_http.sendSync(true);
@@ -2058,7 +2058,7 @@ pub const Example = struct {
HTTP.FetchRedirect.follow,
);
async_http.client.progress_node = progress;
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
var response = try async_http.sendSync(true);
@@ -2147,7 +2147,7 @@ pub const Example = struct {
HTTP.FetchRedirect.follow,
);
async_http.client.progress_node = progress;
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
refresher.maybeRefresh();
@@ -2188,7 +2188,7 @@ pub const Example = struct {
null,
HTTP.FetchRedirect.follow,
);
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
if (Output.enable_ansi_colors) {
async_http.client.progress_node = progress_node;