public function onRead() { if (!$this->client) { return; } do { $this->client->writeFromBuffer($this->bev->input, $this->bev->input->length); } while ($this->bev->input->length > 0); }