[BUGFIX] Reestablish DB connection in long-running tasks 46/42546/5
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 12 Aug 2015 18:31:33 +0000 (20:31 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 16 Aug 2015 19:33:36 +0000 (21:33 +0200)
commit361836d87935b9eb24d95c41c191825dd849d72e
tree7c5f4062571bab55a9177090297f408e7ae09e1f
parent79cbd3094ce91af971a932014b6ef8aea5217939
[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/42546
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Josef Glatz <jousch@gmail.com>
Tested-by: Josef Glatz <jousch@gmail.com>
Reviewed-by: Alexander Schnitzler <typo3@alexanderschnitzler.de>
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