From 6d5f3fefccf129777fd02f3a092c8d35b956326c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Dobe=C5=A1?= Date: Fri, 2 Feb 2018 10:33:27 +0100 Subject: [PATCH] Close socket connection in Downloader::fetchCertificates() (#55) --- src/Downloader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Downloader.php b/src/Downloader.php index 18f17ab..2f0985b 100644 --- a/src/Downloader.php +++ b/src/Downloader.php @@ -169,6 +169,8 @@ protected function fetchCertificates(string $hostName): array $response = stream_context_get_params($client); + fclose($client); + return $response; }