Skip to content

Commit ed19ae0

Browse files
authored
Use --max-time instead of --connect-timeout
See https://curl.se/docs/manpage.html - this helps make sure background processes aren't piling up.
1 parent 491edd8 commit ed19ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function createCurlArgs(string $payload): string
8080
{
8181
$scheme = $this->_ssl ? "https://" : "http://";
8282
$args = " -X POST";
83-
$args.= " --connect-timeout " . $this->_connectTimeout;
83+
$args.= " --max-time " . $this->_connectTimeout;
8484

8585
foreach ($this->_eventHeaders as $key => $value) {
8686
if ($key == 'Authorization') {

0 commit comments

Comments
 (0)