Fixes some msyql issues by forcing read/write timepouts on the
connection object Fixes #6297unstable
parent
86a1a58d2c
commit
680e92968a
|
@ -40,12 +40,14 @@ module Exploit::Remote::MYSQL
|
||||||
connect
|
connect
|
||||||
|
|
||||||
@mysql_handle = ::RbMysql.connect({
|
@mysql_handle = ::RbMysql.connect({
|
||||||
:host => rhost,
|
:host => rhost,
|
||||||
:port => rport,
|
:port => rport,
|
||||||
:socket => sock,
|
:read_timeout => 300,
|
||||||
:user => user,
|
:write_timeout => 300,
|
||||||
:password => pass,
|
:socket => sock,
|
||||||
:db => db
|
:user => user,
|
||||||
|
:password => pass,
|
||||||
|
:db => db
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue