Skip to content

Commit 1ef7933

Browse files
twosedeminy
authored andcommitted
Release the latest connection before accept new one
1 parent 3c039b9 commit 1ef7933

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/Coroutine/Server.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public function start(): bool
111111

112112
while ($this->running) {
113113
/** @var Socket $conn */
114+
$conn = null;
114115
$conn = $socket->accept();
115116
if ($conn) {
116117
$conn->setProtocol($this->setting);

0 commit comments

Comments
 (0)