novatrixtech / mercurius

Mercurius gives you speed when create 'Go' applications. It lets you being focused at business.
Apache License 2.0
144 stars 27 forks source link

MongoDb Sessions not Closing #48

Closed PhillBeck closed 6 years ago

PhillBeck commented 6 years ago

Mongodb sessions are not closed, even though Session.Close() is called.

Steps to recreate:

  1. Create a new project and uncomment the DB part of conf.app.SetupRoutes()
  2. Run the project and make several requests to the endpoint /
  3. Once all the requests are finished, open a mongodb client and type
    use admin
    db.serverStatus().connections

    The current property will show that the sessions are still open.