Skip to content

Commit 5204801

Browse files
committed
ESDK-4069 Fixed ETAC Tunnel stream to notify the application when login timeout occurs for authenticating a tunnel stream.
1 parent e678ab7 commit 5204801

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Cpp-C/Eta/Impl/Reactor/TunnelStream/tunnelStreamImpl.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,11 @@ RsslRet tunnelStreamRead(RsslTunnelStream *pTunnel, RsslMsg *pMsg, RsslErrorInfo
10371037
/* Put any retransmissions back on the list. */
10381038
rsslQueuePrepend(&pTunnelImpl->_tunnelBufferTransmitList, &retransmitQueue);
10391039

1040-
_tunnelStreamUnsetResponseTimer(pTunnelImpl);
1040+
/* Don't unset the response time while the tunnel stream is waiting for the authentication response. */
1041+
if (pTunnelImpl->_state != TSS_WAIT_AUTH_LOGIN_RESPONSE)
1042+
{
1043+
_tunnelStreamUnsetResponseTimer(pTunnelImpl);
1044+
}
10411045

10421046
if (rsslQueueGetElementCount(&pTunnelImpl->_tunnelBufferTransmitList) > 0)
10431047
tunnelStreamSetNeedsDispatch(pTunnelImpl);
@@ -2541,7 +2545,6 @@ RsslRet tunnelStreamHandleState(TunnelStreamImpl *pTunnelImpl, RsslState *pState
25412545
if ((ret = _tunnelStreamHandleEstablished(pTunnelImpl, pErrorInfo)) != RSSL_RET_SUCCESS)
25422546
return RSSL_RET_FAILURE;
25432547

2544-
_tunnelStreamUnsetResponseTimer(pTunnelImpl);
25452548
if (pTunnelImpl->base.classOfService.authentication.type == RDM_COS_AU_OMM_LOGIN)
25462549
{
25472550
if (pTunnelImpl->_pAuthLoginRequest == NULL)
@@ -2571,7 +2574,10 @@ RsslRet tunnelStreamHandleState(TunnelStreamImpl *pTunnelImpl, RsslState *pState
25712574
return RSSL_RET_SUCCESS;
25722575
}
25732576
else
2577+
{
2578+
_tunnelStreamUnsetResponseTimer(pTunnelImpl);
25742579
pTunnelImpl->_state = TSS_OPEN;
2580+
}
25752581
}
25762582
break;
25772583

0 commit comments

Comments
 (0)