[BUGFIX] Reestablish DB connection in long-running tasks 65/42665/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 12 Aug 2015 18:31:33 +0000 (20:31 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 17 Aug 2015 06:28:24 +0000 (08:28 +0200)
commit42c4f43a2e789714e4b4728567fc02addfe59020
tree0628ad42b8c59ce8de46017d61f66df6c161b25f
parent7ac473752e009a888ec22ca6e50107e18a811d34
[BUGFIX] Reestablish DB connection in long-running tasks

During a long-running task the connection to the database may be
disconnected, if mysql `wait_timeout` is exceeded. This patch makes
sure the connection is reestablished if there has been a connection
before.

Resolves: #69001
Releases: master, 6.2
Change-Id: I7575ae386ec190d60ddceee146133125083dee41
Reviewed-on: http://review.typo3.org/42665
Reviewed-by: Josef Glatz <jousch@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/scheduler/Classes/Scheduler.php