Skip to content

Commit

Permalink
[Mailer] Fix usage of stream_set_timeout in case of microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksejs1 authored and nicolas-grekas committed Feb 1, 2024
1 parent 664724b commit b57d722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/Smtp/Stream/SocketStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function initialize(): void
}

stream_set_blocking($this->stream, true);
stream_set_timeout($this->stream, $timeout);
stream_set_timeout($this->stream, (int) $timeout, (int) (($timeout - (int) $timeout) * 1000000));
$this->in = &$this->stream;
$this->out = &$this->stream;
}
Expand Down

0 comments on commit b57d722

Please sign in to comment.