diff options
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslTransceiver.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/SslTransceiver.cpp b/cpp/src/IceSSL/SslTransceiver.cpp index 952f04e3ed0..df84882300e 100644 --- a/cpp/src/IceSSL/SslTransceiver.cpp +++ b/cpp/src/IceSSL/SslTransceiver.cpp @@ -13,6 +13,7 @@ // ********************************************************************** #include <Ice/LoggerUtil.h> +#include <Ice/Stats.h> #include <Ice/Buffer.h> #include <Ice/Network.h> #include <Ice/LocalException.h> @@ -169,6 +170,11 @@ IceSSL::SslTransceiver::read(Buffer& buf, int timeout) out << " bytes via ssl\n" << fdToString(SSL_get_fd(_sslConnection)); } + if(_stats) + { + _stats->bytesReceived(_name, bytesRead); + } + totalBytesRead += bytesRead; buf.i += bytesRead; @@ -989,6 +995,8 @@ IceSSL::SslTransceiver::SslTransceiver(const OpenSSLPluginIPtr& plugin, _plugin(plugin), _traceLevels(plugin->getTraceLevels()), _logger(plugin->getLogger()), + _stats(plugin->getStats()), + _name("ssl"), _fd(fd), _certificateVerifier(certificateVerifier) { |