Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker support #32

Closed
itcreator opened this issue May 29, 2015 · 3 comments · Fixed by #66
Closed

Docker support #32

itcreator opened this issue May 29, 2015 · 3 comments · Fixed by #66
Milestone

Comments

@itcreator
Copy link

When I use Clue\React\Redis\Factory

$factory = new Factory($loop);
$factory->createClient('redis_docker_aliase')
->then(....
...

I see error

exception 'React\SocketClient\ConnectionException' with message 'Connection refused' in /code/vendor/react/socket-client/React/SocketClient/Connector.php:76
Stack trace:
#0 [internal function]: React\SocketClient\Connector->checkConnectedSocket(Resource id #185)
#1 /code/vendor/react/promise/src/React/Promise/FulfilledPromise.php(20): call_user_func(Array, Resource id #185)
#2 /code/vendor/react/promise/src/React/Promise/Deferred.php(39): React\Promise\FulfilledPromise->then(Array, NULL)
#3 [internal function]: React\Promise\Deferred->React\Promise\{closure}(Object(React\Promise\FulfilledPromise))
#4 /code/vendor/react/promise/src/React/Promise/Deferred.php(102): call_user_func(Object(Closure), Object(React\Promise\FulfilledPromise))
#5 /code/vendor/react/promise/src/React/Promise/Deferred.php(60): React\Promise\Deferred->processQueue(Array, Object(React\Promise\FulfilledPromise))
#6 /code/vendor/react/socket-client/React/SocketClient/Connector.php(65): React\Promise\Deferred->resolve(Resource id #185)
#7 [internal function]: React\SocketClient\Connector->React\SocketClient\{closure}(Resource id #185, Object(React\EventLoop\StreamSelectLoop))
#8 /code/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php(160): call_user_func(Object(Closure), Resource id #185, Object(React\EventLoop\StreamSelectLoop))
#9 /code/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php(169): React\EventLoop\StreamSelectLoop->runStreamSelect(true)
#10 /code/vendor/react/event-loop/React/EventLoop/StreamSelectLoop.php(182): React\EventLoop\StreamSelectLoop->loop()
@fesor
Copy link

fesor commented May 30, 2015

I think that this is react/dns issue.

@clue
Copy link
Owner

clue commented May 31, 2015

Thanks for spotting and reporting!

This actually depends on an upstream component (react/socket-client) and there's little we can do about this here. I've filed a relevant ticket here: reactphp-legacy/socket-client#35

@clue clue added this to the v2.1.0 milestone Sep 18, 2017
@clue
Copy link
Owner

clue commented Sep 19, 2017

Small progress update: This has been fixed via reactphp/dns#75 and reactphp/socket#112 last month. So if you update your dependencies, this should now work out of the box 👍

However, I've marked this for the v2.1.0 milestone, as reliably requiring this feature here requires the switch to the Socket component first, which is a BC break targeted for the v2.0.0 release (see #50).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants