Skip to content

MongoDB driver DNS seedlist format #692

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

Closed
surekap opened this issue Jun 14, 2019 · 2 comments
Closed

MongoDB driver DNS seedlist format #692

surekap opened this issue Jun 14, 2019 · 2 comments

Comments

@surekap
Copy link

surekap commented Jun 14, 2019

The mongodb driver has a hard-coded URL scheme in Mongodb/Driver.php on line 245: "mongodb://"

However, according to: the MongoDB Docs a new URL scheme "mongodb+srv" is usable with Atlas replica-sets

Can you allow this setting to be configurable. Also there are other recommended connection parameters which are unsupported
retryWrites=true&w=majority

@Geolim4
Copy link
Member

Geolim4 commented Jun 14, 2019

Hello,

Thanks for the report, I'll add the support for the next minor release: 7.1.x which should be released by the end of summer.

Thanks you !

@Geolim4
Copy link
Member

Geolim4 commented Sep 15, 2019

I'm currently implementing this !

Also there are other recommended connection parameters which are unsupported
retryWrites=true&w=majority

Use the Mongodb config settings setOptions() & getOptions() which are already usable:

public function getOptions(): array

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

No branches or pull requests

2 participants