Skip to content

Commit 1285ab5

Browse files
committed
Flip case
1 parent ea1f9e0 commit 1285ab5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/Telemetry/Adapter/OpenTelemetry/Transport

src/Telemetry/Adapter/OpenTelemetry/Transport/Swoole.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public function __construct(
7575
);
7676
$this->settings = [
7777
'timeout' => $this->timeout,
78-
'connect_timeout' => \min(1.0, $this->timeout),
79-
'read_timeout' => \min(1.0, $this->timeout),
80-
'write_timeout' => \min(1.0, $this->timeout),
78+
'connect_timeout' => \max(0.5, $this->timeout),
79+
'read_timeout' => \max(1.0, $this->timeout),
80+
'write_timeout' => \max(1.0, $this->timeout),
8181
'keep_alive' => true,
8282
'open_tcp_nodelay' => true,
8383
'open_tcp_keepalive' => true,

0 commit comments

Comments
 (0)