Connecting to database
Database connection failed!
->FATAL: sorry, too many clients already
Is what is posted in the terminal after Fenrir connects about 30 or so times.
I'm using psycopg2
Can some one tell me why this is happening? I searched around and every where says I should just increase the connection size. But why do I need to do that when only one user is supposed to be connecting. I am still a newbie when it comes to python but not to programming so is there something I'm missing causing the main to called so many times? If you guys need anymore information please let me know. For the next 20 mins or so I'm gonna keep looking into this and documenting what I find. This way if anyone else has the same problem they can just come here.Thanks in advance.
Maybe I'm just really tired right now... On line 24 and 25 there are too many indents. The way the code is setup line 24 and 25 don't execute at the right time which allows the main to be run a number of times. Now to research why this makes such an impact.