Lines Matching refs:sent
398 $sent = 0;
399 $this->lastSentBytes = $sent;
400 while ($this->isConnected() && $sent < $length) {
401 if (0 == $sent) {
404 $chunk = $this->fwrite(substr($data, $sent));
409 $sent += $chunk;
415 if ($this->writingIsTimedOut($sent)) {
416 …sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)");
419 if (!$this->isConnected() && $sent < $length) {
420 …new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)");
424 private function writingIsTimedOut(int $sent): bool argument
431 if ($sent !== $this->lastSentBytes) {
433 $this->lastSentBytes = $sent;