@@ -322,7 +322,7 @@ const Connection = struct {
322322
323323 const TLSClient = union (enum ) {
324324 blocking : tls .Connection (std .net .Stream ),
325- blocking_tls_in_tls : struct {
325+ blocking_tlsproxy : struct {
326326 proxy : tls .Connection (std .net .Stream ), // Note, self-referential field. Proxy should be pinned in memory.
327327 destination : tls .Connection (* tls .Connection (std .net .Stream )),
328328 },
@@ -331,7 +331,7 @@ const Connection = struct {
331331 fn close (self : * TLSClient ) void {
332332 switch (self .* ) {
333333 .blocking = > | * tls_client | tls_client .close () catch {},
334- .blocking_tls_in_tls = > | * tls_in_tls | {
334+ .blocking_tlsproxy = > | * tls_in_tls | {
335335 tls_in_tls .destination .close () catch {};
336336 tls_in_tls .proxy .close () catch {};
337337 },
@@ -698,13 +698,13 @@ pub const Request = struct {
698698 if (self ._request_secure ) {
699699 // If secure endpoint, create the main TLS stream encapsulated into the TLS stream proxy
700700 self ._connection .? .tls = .{
701- .blocking_tls_in_tls = .{
701+ .blocking_tlsproxy = .{
702702 .proxy = proxy_conn .tls .* ,
703703 .destination = undefined ,
704704 },
705705 };
706- const proxy = & self ._connection .? .tls .? .blocking_tls_in_tls .proxy ;
707- self ._connection .? .tls .? .blocking_tls_in_tls .destination = try tls .client (proxy , tls_config );
706+ const proxy = & self ._connection .? .tls .? .blocking_tlsproxy .proxy ;
707+ self ._connection .? .tls .? .blocking_tlsproxy .destination = try tls .client (proxy , tls_config );
708708 } else {
709709 // Otherwise, just use the TLS stream proxy
710710 self ._connection .? .tls = .{ .blocking = proxy_conn .tls .* };
@@ -1776,8 +1776,8 @@ const SyncHandler = struct {
17761776 .blocking = > | * blocking | {
17771777 break :blk .{ .tls = blocking };
17781778 },
1779- .blocking_tls_in_tls = > | * blocking_tls_in_tls | {
1780- break :blk .{ .tls_in_tls = & blocking_tls_in_tls .destination };
1779+ .blocking_tlsproxy = > | * blocking_tlsproxy | {
1780+ break :blk .{ .tls_in_tls = & blocking_tlsproxy .destination };
17811781 },
17821782 }
17831783 }
0 commit comments