Skip to content

Commit b93c98f

Browse files
committed
fix socket tcp_congestion test seems fbsd 14 had switched to cubic algo.
1 parent 5f4c04b commit b93c98f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/sockets/tests/socket_tcp_congestion.phpt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ if (!defined('TCP_CONGESTION')) {
1111
--FILE--
1212
<?php
1313

14-
if (str_contains(PHP_OS, 'Linux')) {
15-
$algo = 'cubic';
16-
} else {
17-
$algo = 'newreno';
18-
}
14+
$algo = 'cubic';
1915
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
2016
if (!$socket) die ("socket failed");
2117
$r = socket_get_option($socket, SOL_TCP, TCP_CONGESTION);

0 commit comments

Comments
 (0)