Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

DocumentClient causing connection leakage #127

Closed sau3078 closed 5 years ago

sau3078 commented 5 years ago

I am using document client for getting connection with cosmosdb and written crud repository.

Does we need to explicitly close document client? Or it will close after automatically after database call ?

Please confirm.

Rakatashii commented 5 years ago

???

christopheranderson commented 5 years ago

You should close the client after you're done with it and want to gracefully close any outstanding sockets.