|
|
@ -16,7 +16,7 @@ function remoteCall(string $host, $port, string $data) { |
|
|
|
|
|
|
|
$client->set(array( |
|
|
|
'open_length_check' => true, |
|
|
|
'package_max_length' => 81920, |
|
|
|
'package_max_length' => 1024 * 1024 * 20, |
|
|
|
'package_length_type' => 'N', |
|
|
|
'package_length_offset' => 9, |
|
|
|
'package_body_offset' => 13 |
|
|
@ -44,8 +44,9 @@ function remoteCall(string $host, $port, string $data) { |
|
|
|
return $ret['data']; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$ret = remoteCall("127.0.0.1", "5188", '{"controller":"site","methor":"test","params":{"id":1}}'); |
|
|
|
//$data = '{"controller":"site","methor":"test","params":{"id":1}}';
|
|
|
|
$data = file_get_contents("/mnt/hgfs/wdev/data.txt"); |
|
|
|
$ret = remoteCall("127.0.0.1", "5188", $data); |
|
|
|
|
|
|
|
//'{"controller":"site","methor":"test","params":{"id":"111"}}
|
|
|
|
//'{"controller":"site","methor":"test","params":{"id":1,"status":0}}'
|
|
|
|