Whether maxidletime or maxlifetime closes connections or not

Whether maxidletime or maxlifetime closes connections or not ? I have minimum connection 1 and max connection 500. I am going with max load which makes 500 connections open but it did not close all connections at a time after maxidletime or maxlifetime which is 3mins in my application. These 500 connections are closing gradually which is taking almost 7 to 8hrs to close all the connections. We are using mongo server 3.2 and mongo db driver 2.11.2 in dot net core.