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

Amazon MySql db connection issue #67

Closed
plankes-projects opened this issue Apr 12, 2018 · 4 comments
Closed

Amazon MySql db connection issue #67

plankes-projects opened this issue Apr 12, 2018 · 4 comments

Comments

@plankes-projects
Copy link

plankes-projects commented Apr 12, 2018

I am connecting to an amazon DB from windows php 7.2.4 with following code:
https://gist.github.com/plankes-projects/d941f49bf74353f0b29700261192c639

I get DNS timeout exception when I am running it on my windows developer machine.
https://gist.github.com/plankes-projects/c3cfd2a6aead806adc7a9efaf545ba48

Everthing works fine if I am using this config with eloquent or if I am connecting to a local DB:
https://gist.github.com/plankes-projects/afbe1d66eb08262a0f1484cf9fbaf402

Following amphp versions are installed with composer:
amphp/amp dev-master 9b2fb76 A non-blocking concurrency framework for PHP applications.
amphp/byte-stream v1.3.1 A stream abstraction to make working with non-blocking I/O...
amphp/cache v1.2.0 A promise-aware caching API for Amp.
amphp/dns v0.9.12 Async DNS resolution for Amp.
amphp/file v0.3.1 Allows non-blocking access to the filesystem for Amp.
amphp/mysql dev-master aec58f4 Asynchronous parallel Mysql client built on the Amp concur...
amphp/parallel v0.2.5 Parallel processing component for Amp.
amphp/parser v1.0.0 A generator parser to make streaming parsers simple.
amphp/process v0.3.3 Asynchronous process manager.
amphp/socket v0.10.8 Async socket connection / server tools for Amp.
amphp/sync v1.0.1 Mutex, Semaphore, and other synchronization tools for Amp.
amphp/uri v0.1.3 Uri Parser and Resolver.
amphp/windows-registry v0.3.1 Windows Registry Reader.

@plankes-projects
Copy link
Author

Maybe there is an issue because I create my own ClientTlsContext ?
But still does not explain the DNS timeout on local machine.

@plankes-projects
Copy link
Author

The problem was indeed my own ClientTlsContext . if I have no CA file and leave ClientTlsContext as null it works on windows server.

Timeout is still present locally.

@kelunik
Copy link
Member

kelunik commented Apr 21, 2018

@plankes-projects Please create an issue at amphp/dns for any DNS related errors.

@plankes-projects
Copy link
Author

Moved to amphp/dns#76

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

No branches or pull requests

2 participants