Details
-
Task
-
Resolution: Cannot Reproduce
-
Unknown
-
None
-
None
-
None
-
None
Description
wih latest mongo c lib 19.1 and mongodb community 5.0.2 I find a LOT of sockets in timed_wait (client is on windows 7)
there appears to me to be constant needless socket allocation to a stable mongodb
c:\temp\mongo-c-driver-1.19.0\mongo-c-driver-1.19.0\src\libmongoc\src\mongoc\mongoc-cluster.c
mongoc_cluster_fetch_stream_pooled
cluster_node = _mongoc_cluster_add_node (cluster, server_id, error);
I obtain different clients from a single mongoc_client_pool_t
in the connection url I put these as high as possible but there doesn't seem to be considering them, it seems to allocate sockets irrespectively
heartbeatfrequencyms=1000000
socketCheckIntervalMS=1000000
what could I do to stop it leaking sockets ?