Commit 64788c17 authored by Andrew Clayton's avatar Andrew Clayton Committed by Jason Carey (hanumantmk)
Browse files

client: Fix setting of the connectTimeoutMS value



When specifying the connectTimeoutMS option in the URI e.g

    ?connectTimeoutMS=250

this would be added internally under the name as specified, ie in this
case connectTimeoutMS however when mongoc_client_connect_tcp() comes to
look for this setting, it does so case sensitively as all lowercase, i.e

    if ((options = mongoc_uri_get_options (uri)) &&
        bson_iter_init_find (&iter, options, "connecttimeoutms") &&

and won't find the setting and will use the default connectTimeoutMS
value instead.

It should use bson_iter_init_find_case() instead for a case insensitive
search.

Signed-off-by: default avatarAndrew Clayton <andrew@digital-domain.net>

Closes #178
parent 6d4e69e2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment