Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
adjust default SESSION timeout settings
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-pie authored Jan 20, 2020
2 parents 1d1652c + f140cc9 commit 21ee88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap_mysql/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def connect_with_backoff(connection):
warnings.append(f'Could not set session.time_zone. Error: ({exc.args[0]}) {exc.args[1]}')

try:
cur.execute('SET @@session.wait_timeout=2700')
cur.execute('SET @@session.wait_timeout=28800')
except pymysql.err.InternalError as exc:
warnings.append(f'Could not set session.wait_timeout. Error: ({exc.args[0]}) {exc.args[1]}')

Expand All @@ -43,7 +43,7 @@ def connect_with_backoff(connection):
warnings.append(f'Could not set session.net_read_timeout. Error: ({exc.args[0]}) {exc.args[1]}')

try:
cur.execute('SET @@session.innodb_lock_wait_timeout=2700')
cur.execute('SET @@session.innodb_lock_wait_timeout=3600')
except pymysql.err.InternalError as exc:
warnings.append(
f'Could not set session.innodb_lock_wait_timeout. Error: ({exc.args[0]}) {exc.args[1]}'
Expand Down

0 comments on commit 21ee88e

Please sign in to comment.