Skip to content

Commit ca30a94

Browse files
committed
use fresh_connect and forbid_reuse in curl
1 parent 40eef6c commit ca30a94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/HttpDriver/Driver.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ public function session()
4747
}
4848

4949
if (null !== $this->config->getCurlInterface()) {
50-
$options['curl'] = [
51-
'CURLOPT_INTERFACE' => $this->config->getCurlInterface()
52-
];
50+
$options['curl'][10062] = $this->config->getCurlInterface();
5351
}
5452

53+
$options['curl'][74] = true;
54+
$options['curl'][75] = true;
55+
5556
return new Session(
5657
$this->uri, new Client($options), $this->config);
5758
}

0 commit comments

Comments
 (0)