vert-x3 / vertx-examples

Vert.x examples
Apache License 2.0
3.55k stars 2.09k forks source link

Cleaning Pool for Idle Connection #439

Open kshitiz-thapa opened 2 years ago

kshitiz-thapa commented 2 years ago

I am using a 3.9.8 version of vert.x mail client. My problem is I am getting error because of idle and disconnected connection stored in the pool but not being clear and it's not letting new connection to enter. I see the newer 4.x version has the cleaning feature added which might resolve it but in my case I can't upgrade it to 4.x. So I was thinking of writing a scheduler that cleans the idle connections from the pool on every period of time(say 15 minutes). Is it possible ? If yes I need to guidance here. Thank you