Ice version:3.3.1
VC2005
Win7
---------------------------
above code is on server side. when client connect the server,this function will be called.But sometimes ,the Ice runtime will throw below exception:Code:const string& CmnServiceI::RefreshClientsInfo() { IceUtil::RWRecMutex::WLock lock(_rwMutex); connectionInfoBuff.clear(); connectionInfoBuff.append(Poco::format("Server ID:%s Total Clients:%d\r\n",serverId,(int)connectedClients.size())); connectionInfoBuff.append("Refresh at "); Poco::LocalDateTime now; connectionInfoBuff.append(Poco::DateTimeFormatter::format(now,Poco::DateTimeFormat::SORTABLE_FORMAT)); connectionInfoBuff.append("\r\n==================================================\r\n"); int index=0; for(StringRemoteControlablePrxMap::const_iterator it=connectedClients.begin(); it!=connectedClients.end();++it) { connectionInfoBuff.append("Client ID:"); connectionInfoBuff.append(it->first); connectionInfoBuff.append(":\r\n"); //connectionInfoBuff.append(it->second->ice_getConnection()->toString()); connectionInfoBuff.append("\r\n--------------------------------------------------\r\n"); } //Poco::Logger::get(TX_LOGGER_NAME).notice(connectionInfoBuff); return connectionInfoBuff; }
May be this is a bug?Code:warning: connection exception: TcpTransceiver.cpp:158: Ice::ConnectionLostException: connection lost: recv() returned zero
REF:Compression issue with PHP client (TcpTransceiver.cpp:158: ConnectionLostException)

Reply With Quote
