Fixes some msyql issues by forcing read/write timepouts on the

connection object
Fixes #6297
unstable
David Maloney 2012-04-23 18:42:06 -05:00
parent 86a1a58d2c
commit 680e92968a
1 changed files with 8 additions and 6 deletions

View File

@ -40,12 +40,14 @@ module Exploit::Remote::MYSQL
connect
@mysql_handle = ::RbMysql.connect({
:host => rhost,
:port => rport,
:socket => sock,
:user => user,
:password => pass,
:db => db
:host => rhost,
:port => rport,
:read_timeout => 300,
:write_timeout => 300,
:socket => sock,
:user => user,
:password => pass,
:db => db
})
end