Giter VIP home page Giter VIP logo

Comments (7)

atheken avatar atheken commented on August 26, 2024

Without seeing some code it's hard to tell, two things:

  1. Please post this to the google group: http://groups.google.com/group/norm-mongodb?lnk=srg

  2. Are you disposing "Mongo" after you're done with it? Each instance of this class has connection affinity, and will not release its pooled connection until it is disposed. It would be useful to see how you're using this class in your code.

from norm.

ArnisL avatar ArnisL commented on August 26, 2024

Sorry for my ignorance. Will use google group in advance.

It looks like life cycle management is wrong and Disposed isn't called.

Thanks.

from norm.

atheken avatar atheken commented on August 26, 2024

Sorry, does that mean you're not disposing Mongo? or that you think there's a bug in norm? can you post some of the code you're using to access Mongo via NoRM?

http://gist.github.com

from norm.

ArnisL avatar ArnisL commented on August 26, 2024

Yeah, my code was wrong. NoRM looks good.

from norm.

vgirard avatar vgirard commented on August 26, 2024

How did you resolve this, I have the same issue, I'm using Ninject so the connection should be close by ninject? Any help please!

from norm.

atheken avatar atheken commented on August 26, 2024

@vgirard you should post your Ninject code to the Google Group and I am sure someone can help you out.

from norm.

ArnisL avatar ArnisL commented on August 26, 2024

@vgirard I just ensured correct life cycle. MongoSession has to be released at the end of http request or something. Played around structuremap a bit and it worked.

from norm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.