From 19d868eb7dcb0e08b332a9cbe262366eb018c153 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 7 Apr 2020 13:08:55 -0700 Subject: [PATCH] start CID, SID, and IOID from different non-zero Help to detect situations where these IDs get mixed up --- src/remote/codec.cpp | 2 +- src/remoteClient/clientContextImpl.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/remote/codec.cpp b/src/remote/codec.cpp index 69fa37b..23bb929 100644 --- a/src/remote/codec.cpp +++ b/src/remote/codec.cpp @@ -1439,7 +1439,7 @@ BlockingServerTCPTransportCodec::BlockingServerTCPTransportCodec( int32_t receiveBufferSize) :BlockingTCPTransportCodec(true, context, channel, responseHandler, sendBufferSize, receiveBufferSize, PVA_DEFAULT_PRIORITY) - ,_lastChannelSID(0) + ,_lastChannelSID(0x12003400) ,_verificationStatus(pvData::Status::fatal("Uninitialized error")) ,_verifyOrVerified(false) { diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 6aae31e..ccc2637 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -3956,7 +3956,8 @@ public: InternalClientContextImpl(const Configuration::shared_pointer& conf) : m_addressList(""), m_autoAddressList(true), m_connectionTimeout(30.0f), m_beaconPeriod(15.0f), m_broadcastPort(PVA_BROADCAST_PORT), m_receiveBufferSize(MAX_TCP_RECV), - m_lastCID(0), m_lastIOID(0), + m_lastCID(0x10203040), + m_lastIOID(0x80706050), m_version("pvAccess Client", "cpp", EPICS_PVA_MAJOR_VERSION, EPICS_PVA_MINOR_VERSION,