Skip to content

Commit b7010b6

Browse files
committed
keep bolt connection alive as long as possible
1 parent a5bc63c commit b7010b6

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,4 @@ private function getBolt(): Bolt
163163
{
164164
return $this->connection->getImplementation();
165165
}
166-
167-
public function __destruct()
168-
{
169-
$this->connection->close();
170-
}
171166
}

src/Databags/TransactionConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
final class TransactionConfiguration
2424
{
25-
public const DEFAULT_TIMEOUT = 15.0;
25+
public const DEFAULT_TIMEOUT = 100000.0;
2626
public const DEFAULT_METADATA = '[]';
2727

2828
/** @var pure-callable():(float|null)|float|null */

src/Http/HttpUnmanagedTransaction.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,4 @@ public function rollback(): void
130130

131131
HttpHelper::interpretResponse($response);
132132
}
133-
134-
public function __destruct()
135-
{
136-
$this->connection->close();
137-
}
138133
}

0 commit comments

Comments
 (0)