Permalink
Browse files

Maximum wait_timeout on Windows is 2147483

  • Loading branch information...
1 parent fcef728 commit a2bf014330310da718dd92ffdfd0435463ed3a4f @fotos fotos committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -260,7 +260,7 @@ def configure_connection
# increase timeout so mysql server doesn't disconnect us
wait_timeout = @config[:wait_timeout]
- wait_timeout = 2592000 unless wait_timeout.is_a?(Fixnum)
+ wait_timeout = 2147483 unless wait_timeout.is_a?(Fixnum)
variable_assignments << "@@wait_timeout = #{wait_timeout}"
execute("SET #{variable_assignments.join(', ')}", :skip_logging)

0 comments on commit a2bf014

Please sign in to comment.