Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
8723d049
Commit
8723d049
authored
Dec 23, 2016
by
Bas de Nooijer
Committed by
GitHub
Dec 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #467 from bjoernhaeuser/usleep
usleep after curl_multi_select -1
parents
429d2d9c
c837441c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
library/Solarium/Plugin/ParallelExecution/ParallelExecution.php
...y/Solarium/Plugin/ParallelExecution/ParallelExecution.php
+6
-4
No files found.
library/Solarium/Plugin/ParallelExecution/ParallelExecution.php
View file @
8723d049
...
...
@@ -156,11 +156,13 @@ class ParallelExecution extends AbstractPlugin
$timeout
=
$this
->
getOption
(
'curlmultiselecttimeout'
);
while
(
$active
&&
$mrc
==
CURLM_OK
)
{
if
(
curl_multi_select
(
$multiHandle
,
$timeout
)
!=
-
1
)
{
do
{
$mrc
=
curl_multi_exec
(
$multiHandle
,
$active
);
}
while
(
$mrc
==
CURLM_CALL_MULTI_PERFORM
);
if
(
curl_multi_select
(
$multiHandle
,
$timeout
)
==
-
1
)
{
usleep
(
100
);
}
do
{
$mrc
=
curl_multi_exec
(
$multiHandle
,
$active
);
}
while
(
$mrc
==
CURLM_CALL_MULTI_PERFORM
);
}
$this
->
client
->
getEventDispatcher
()
->
dispatch
(
Events
::
EXECUTE_END
,
new
ExecuteEndEvent
());
...
...
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