Skip to content

Commit a984cf1

Browse files
fix(ibs, request settings): curl opts, connecttimeout increased to 15, verifypeer/host deactivated
1 parent 7f9bad2 commit a984cf1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/IBS/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function request($cmd, $path = "")
147147
curl_setopt_array($this->chandle, [
148148
// CURLOPT_VERBOSE => $this->debugMode,
149149
CURLOPT_URL => $cfg["CONNECTION_URL"],
150-
CURLOPT_CONNECTTIMEOUT => 5, // 5s
150+
CURLOPT_CONNECTTIMEOUT => 15, // 15s
151151
CURLOPT_TIMEOUT => $this->settings["socketTimeout"],
152152
CURLOPT_POST => 1,
153153
CURLOPT_HEADER => 0,
@@ -160,6 +160,8 @@ public function request($cmd, $path = "")
160160
"Content-Length: " . strlen($data),
161161
"Connection: keep-alive"
162162
],
163+
CURLOPT_SSL_VERIFYPEER => 0, // IBS only
164+
CURLOPT_SSL_VERIFYHOST => 0 // IBS only
163165
] + $this->curlopts);
164166

165167
// which is by default tested for by phpStan

0 commit comments

Comments
 (0)