Skip to content

Commit 6915738

Browse files
committed
cdp: ensure no inflight conns is running before set TLS verify
1 parent 4f62cc8 commit 6915738

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/http/Client.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ pub fn restoreOriginalProxy(self: *Client) !void {
338338

339339
// Enable TLS verification on all connections.
340340
pub fn enableTlsVerify(self: *const Client) !void {
341+
try self.ensureNoActiveConnection();
342+
341343
for (self.handles.handles) |*h| {
342344
const easy = h.conn.easy;
343345

@@ -353,6 +355,8 @@ pub fn enableTlsVerify(self: *const Client) !void {
353355

354356
// Disable TLS verification on all connections.
355357
pub fn disableTlsVerify(self: *const Client) !void {
358+
try self.ensureNoActiveConnection();
359+
356360
for (self.handles.handles) |*h| {
357361
const easy = h.conn.easy;
358362

0 commit comments

Comments
 (0)