php测试并发连接数小工具

 1, 'l_linger' => 0);
		socket_set_option($sockets[$i], SOL_SOCKET, SO_LINGER, $linger);
	}
	socket_getsockname($sockets[$i], $local_ip, $local_port);
	echo "$local_ip:$local_port\n";
}
$sleep_secs && sleep($sleep_secs);
foreach ($sockets as $socket) {
	socket_close($socket);
}

你可能感兴趣的:(php)