Home Help Center

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

sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
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

  • sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
    why no one reply to me?:confused:
  • sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
    Except for ice_getConnection,there are any other way to get the connection infomation?
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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 [email protected].

    Thanks,
    Bernard
  • sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
    I reply your email!
    Thanks for your suport!
  • sgsoftsgsoft Member Samon SunOrganization: FreelanceProject: Remote RFID Reader
    IceUtil::RWRecMutex::WLock has bug.
Sign In or Register to comment.