Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
64b9fed9
Commit
64b9fed9
authored
Aug 30, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish
parent
102037bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
SwoftHttpClient.php
classes/fpf/http/SwoftHttpClient.php
+2
-7
SwooleHttpClient.php
classes/fpf/http/SwooleHttpClient.php
+2
-7
No files found.
classes/fpf/http/SwoftHttpClient.php
View file @
64b9fed9
...
@@ -148,13 +148,8 @@ class SwoftHttpClient
...
@@ -148,13 +148,8 @@ class SwoftHttpClient
public
function
closeCurlHandle
()
public
function
closeCurlHandle
()
{
{
try
{
if
(
$this
->
handle
)
{
if
(
$this
->
curl_handle
)
{
$this
->
handle
=
null
;
curl_close
(
$this
->
curl_handle
);
$this
->
curl_handle
=
null
;
}
}
catch
(
\Exception
$x
)
{
error_log
(
'There was an error closing the curl handle: '
.
$x
->
getMessage
());
}
}
}
}
...
...
classes/fpf/http/SwooleHttpClient.php
View file @
64b9fed9
...
@@ -163,13 +163,8 @@ class SwooleHttpClient
...
@@ -163,13 +163,8 @@ class SwooleHttpClient
public
function
closeCurlHandle
()
public
function
closeCurlHandle
()
{
{
try
{
if
(
$this
->
handle
)
{
if
(
$this
->
curl_handle
)
{
$this
->
handle
=
null
;
curl_close
(
$this
->
curl_handle
);
$this
->
curl_handle
=
null
;
}
}
catch
(
\Exception
$x
)
{
error_log
(
'There was an error closing the curl handle: '
.
$x
->
getMessage
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment