Skip to content

Commit 4416d0d

Browse files
committed
renamed setTimeoutOnStream to configureTimeout
1 parent 7f812f5 commit 4416d0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/connection/StreamSocket.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function connect(): bool
6767
}
6868
}
6969

70-
$this->setTimeoutOnStream();
70+
$this->configureTimeout();
7171

7272
return true;
7373
}
@@ -121,14 +121,14 @@ public function disconnect()
121121
public function setTimeout(float $timeout): void
122122
{
123123
parent::setTimeout($timeout);
124-
$this->setTimeoutOnStream();
124+
$this->configureTimeout();
125125
}
126126

127127
/**
128128
* @return void
129129
* @throws ConnectException
130130
*/
131-
private function setTimeoutOnStream(): void
131+
private function configureTimeout(): void
132132
{
133133
$timeout = (int)floor($this->timeout);
134134
if (!stream_set_timeout($this->stream, $timeout, (int)floor(($this->timeout - $timeout) * 1000000))) {

0 commit comments

Comments
 (0)