This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229744

Summary: add timeout on database connection
Product: db Reporter: akobberup
Component: SQL EditorAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: ENHANCEMENT Exception Reporter:

Description akobberup 2013-05-14 17:00:17 UTC
Would it be possible to add an optional timeout parameter for a database connection?
I have defined database connections for my own test db, our test environments, our staging environment and our production environment in netbeans.
For the first ones i have netbeans store the password, whereas for the staging and prod. databases i input the password manually.

However when i have connected to one of these, i often forget that i have an open connection to the database (the sql tab may be open in the editor while i continue working on something else). It would be awesome to have an option to specify that the connection should be disconnected if no queries are executed within say 5 minutes, so i have to enter the password again when executing the next query.