Skip to content

Commit d6a7f02

Browse files
authored
Update WebServer.php
1 parent 435cbaa commit d6a7f02

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WebServer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ public function onMessage($connection)
209209
}
210210
$content = ob_get_clean();
211211
ini_set('display_errors', 'on');
212-
$connection->close($content);
212+
if (strtolower($_SERVER['HTTP_CONNECTION']) === "keep-alive") {
213+
$connection->send($content);
214+
} else {
215+
$connection->close($content);
216+
}
213217
chdir($workerman_cwd);
214218
return;
215219
}

0 commit comments

Comments
 (0)