Archived

This forum has been archived. Please start a new discussion on GitHub.

ICE 3.3.1 BUG: TcpTransceiver.cpp:158:Ice::ConnectionLostExceptio n:

Ice version:3.3.1
VC2005
Win7
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;
}

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:
warning: connection exception:
TcpTransceiver.cpp:158: Ice::ConnectionLostException:
connection lost: recv() returned zero

May be this is a bug?
REF:http://www.zeroc.com/forums/bug-reports/3894-compression-issue-php-client-tcptransceiver-cpp-158-connectionlostexception.html

Comments

  • why no one reply to me?:confused:
  • Except for ice_getConnection,there are any other way to get the connection infomation?
  • bernard
    bernard Jupiter, FL
    Hello Samson Sun,

    I sent you an email last week, at the address you used to register with these forums.

    If you didn't receive this email, please update your email address in your profile, and contact us at info@zeroc.com.

    Thanks,
    Bernard
  • I reply your email!
    Thanks for your suport!
  • IceUtil::RWRecMutex::WLock has bug.