Skip to content

Commit 8a8765b

Browse files
committed
Revert ee6bc94.
The client code is not affected by the use case described in the relevant commit. Therefore such a problem is most likely to be solved at the application level.
1 parent 8af1b15 commit 8a8765b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Connection/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface Connection
2727
public function open() : Greeting;
2828

2929
/**
30-
* Closes an opened connection (including a persistent one).
30+
* Closes an opened connection.
3131
*/
3232
public function close() : void;
3333

src/Connection/StreamConnection.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ public function open() : Greeting
119119

120120
public function close() : void
121121
{
122-
// To close a previously opened persistent connection,
123-
// we need to obtain its stream handler first
124-
if (!$this->stream && $this->options['persistent']) {
125-
$this->open();
126-
}
127-
128122
if ($this->stream) {
129123
/** @psalm-suppress InvalidPropertyAssignmentValue */
130124
\fclose($this->stream);

0 commit comments

Comments
 (0)