mirror of https://github.com/MISP/MISP
chg: [internal] Try to close CURL connection
parent
c2e0ba3ce3
commit
2080e99eb7
|
@ -255,6 +255,14 @@ class CurlClient extends HttpSocketExtended
|
|||
return $this->constructResponse($output, $responseHeaders, $code);
|
||||
}
|
||||
|
||||
public function disconnect()
|
||||
{
|
||||
if ($this->ch) {
|
||||
curl_close($this->ch);
|
||||
$this->ch = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $body
|
||||
* @param array $headers
|
||||
|
|
Loading…
Reference in New Issue