LoonyPandora / Dancer-Session-DBI

Dancer-Session-DBI
1 stars 4 forks source link

Fix database connection DoS by reusing the database connection #9

Open sewi-cpan opened 7 years ago

sewi-cpan commented 7 years ago

Fixes issue #8 Currently, a new database connection is created each time someone calls session() which results in a DNS and database connection flood and adds unnecessary delays without any reason.

The fix tried to reuse a once-created connection until it got lost (maybe due to a server-side timeout for idle connections) and reconnects on demand.

sewi-cpan commented 7 years ago

Travis fails seem to have other reasons not related to the changes in this request.