diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-03-05 15:44:08 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-03-05 15:44:08 -0330 |
commit | b96b045ecc6e034307ba8065af73c252e0093bbb (patch) | |
tree | c3f22df1c67a7de3c435c4be31ef2adfb300b1e8 /php/test | |
parent | Fixed linux php build (diff) | |
download | ice-b96b045ecc6e034307ba8065af73c252e0093bbb.tar.bz2 ice-b96b045ecc6e034307ba8065af73c252e0093bbb.tar.xz ice-b96b045ecc6e034307ba8065af73c252e0093bbb.zip |
ICE-6082 No way to discover send/recv buffer sizes
Diffstat (limited to 'php/test')
-rw-r--r-- | php/test/Ice/info/Client.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/php/test/Ice/info/Client.php b/php/test/Ice/info/Client.php index 1e9b275b064..23e296acdba 100644 --- a/php/test/Ice/info/Client.php +++ b/php/test/Ice/info/Client.php @@ -121,7 +121,10 @@ function allTests($communicator) $ipConnectionInfoClass = $NS ? "Ice\\IPConnectionInfo" : "Ice_IPConnectionInfo"; $wsConnectionInfoClass = $NS ? "Ice\\WSConnectionInfo" : "Ice_WSConnectionInfo"; - $info = $base->ice_getConnection()->getInfo(); + $connection = $base->ice_getConnection(); + $connection->setBufferSize(1024, 2048); + + $info = $connection->getInfo(); test($info instanceof $ipConnectionInfoClass); test(!$info->incoming); test(strlen($info->adapterName) == 0); @@ -131,6 +134,8 @@ function allTests($communicator) test($info->remoteAddress == $defaultHost); test($info->localAddress == $defaultHost); } + test($info->rcvSize == 1024); + test($info->sndSize == 2048); $ctx = $testIntf->getConnectionInfoAsContext(); test($ctx["incoming"] == "true"); |