Skip to content

Commit e8c095b

Browse files
committed
[Socket] Implement buffered async writing and closeAfterWriting
1 parent 302620f commit e8c095b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

StreamSelectLoop.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ public function tick()
8787
}
8888
}
8989
}
90+
9091
if ($write) {
9192
foreach ($write as $stream) {
93+
if (!isset($this->writeListeners[(int) $stream])) {
94+
continue;
95+
}
9296
foreach ($this->writeListeners[(int) $stream] as $listener) {
9397
if (call_user_func($listener, $stream, $this) === false) {
9498
$this->removeWriteStream($stream);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy