|
@@ -66,17 +66,15 @@ function remote_addr()
|
|
|
|
|
|
$listen_fd = stream_socket_server (remote_addr(), $errno, $errstr);
|
|
|
|
|
|
-$addr = remote_addr();
|
|
|
-echo "remote addr = {$addr} fd={$listen_fd}";
|
|
|
-
|
|
|
-search_work($listen_fd);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//$count = 1;
|
|
|
-//while ($count-- > 0) {
|
|
|
-// fork_subprocess($count,$listen_fd);
|
|
|
-//}
|
|
|
+//$addr = remote_addr();
|
|
|
+//echo "remote addr = {$addr} fd={$listen_fd}";
|
|
|
+//
|
|
|
+//search_work($listen_fd);
|
|
|
+
|
|
|
+$count = 1;
|
|
|
+while ($count-- > 0) {
|
|
|
+ fork_subprocess($count,$listen_fd);
|
|
|
+}
|
|
|
|
|
|
|
|
|
|