Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5846 (new defect)

Opened 3 years ago

Last modified 2 years ago

[PATCH]DB2 adapter doesn't disconnect properly

Reported by: Andrew Dolgov <cthulhoo@gmail.com> Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version:
Severity: normal Keywords: db2 adapter
Cc:

Description

DB2 adapter doesn't disconnect properly and generates new connection for each database query, actually creating a DOS attack on a database server. The behaviour is apparent with latest version of Rails in Debian/etch - 1.1.6-1.

DB2 version in use is 8.2

Simple fix here:

http://madoka.spb.ru/~fox/rails-db2-patches/rails-db2_adapter.disconnect.diff

Attachments

rails-db2_adapter.disconnect.diff (311 bytes) - added by matt on 06/25/07 21:42:01.

Change History

06/25/07 21:42:01 changed by matt

  • attachment rails-db2_adapter.disconnect.diff added.

06/25/07 21:43:11 changed by matt

  • summary changed from DB2 adapter doesn't disconnect properly to [PATCH]DB2 adapter doesn't disconnect properly.

prefix the summary with [PATCH] so TRAC can manage this ticket properly. And I also attached your patch directly to this ticket.