You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disadvantage of this approach that transport may retry establishing connection with incorrectly passed configuration, while client will raise an Exception
The text was updated successfully, but these errors were encountered:
The pymongo parser is used here and it converts timeouts values (ex.
sockettimeoutms
) fromms
intoseconds
.kombu/kombu/transport/mongodb.py
Line 308 in 0411b23
Then these parameters are passed as keywords argument into
__init__
method ofMongoClient
, but there is another iteration of converting arguments:https://github.com/mongodb/mongo-python-driver/blob/4353278dc8655f7c12e624e9c9b774bc66c2060b/pymongo/synchronous/mongo_client.py#L824-L826
As a result timeout arguments, which are passed through connection URI, are double divided and we get timeouts 0.01 seconds instead of 10 for example.
The simpliest solution is to add `validate=False when parsing uri on the kombu side:
Disadvantage of this approach that transport may retry establishing connection with incorrectly passed configuration, while client will raise an Exception
The text was updated successfully, but these errors were encountered: