minor cleanup

This commit is contained in:
Matej Sekoranja
2012-07-30 13:41:13 +02:00
parent 39d6a6bc19
commit e74f2cdb2a
7 changed files with 38 additions and 38 deletions

View File

@@ -140,16 +140,18 @@ namespace epics {
// TODO tune buffer sizes?! Win32 defaults are 8k, which is OK
// create transport
// TODO introduce factory
transport = BlockingClientTCPTransport::create(
context, socket, responseHandler, _receiveBufferSize,
client, transportRevision, _beaconInterval, priority);
// verify
if(!transport->waitUntilVerified(3.0)) {
if(!transport->verify(3000)) {
LOG(
logLevelDebug,
"Connection to CA server %s failed to be validated, closing it.",
ipAddrStr);
std::ostringstream temp;
temp<<"Failed to verify TCP connection to '"<<ipAddrStr<<"'.";
THROW_BASE_EXCEPTION(temp.str().c_str());