Skip to content

Commit 4ba09bf

Browse files
committed
= SipStack - 버전 0.23 ( 2015년 6월 8일 ) =
* TCP/TLS 세션 timeout 된 이후에 TCP/TLS 세션 자료구조에서 삭제하는 기능을 추가함
1 parent d4f46ae commit 4ba09bf

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

SipStack/SipStackVersion.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
#ifndef _SIP_STACK_VERSION_H_
2020
#define _SIP_STACK_VERSION_H_
2121

22-
#define SIP_STACK_VERSION "0.22"
22+
#define SIP_STACK_VERSION "0.23"
2323

2424
/* 버전 정보
2525
26+
= 버전 0.23 ( 2015년 6월 8일 ) =
27+
* TCP/TLS 세션 timeout 된 이후에 TCP/TLS 세션 자료구조에서 삭제하는 기능을 추가함
28+
2629
= 버전 0.22 ( 2014년 10월 29일 ) =
2730
* IPv6 기능을 추가함
2831

SipStack/TcpSessionList.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "SipStackDefine.h"
2020
#include "TcpSessionList.h"
2121
#include "SipStack.h"
22+
#include "Log.h"
2223
#include <time.h>
2324
#include "MemoryDebug.h"
2425

@@ -247,6 +248,17 @@ void CTcpSessionList::DeleteTimeout( int iTimeout, CThreadListEntry * pclsEntry
247248

248249
if( m_clsList[i].m_iRecvTime < iTime )
249250
{
251+
CLog::Print( LOG_DEBUG, "%s (%s,%d) timeout", __FUNCTION__, m_clsList[i].m_strIp.c_str(), m_clsList[i].m_iPort );
252+
253+
if( m_eTransport == E_SIP_TCP )
254+
{
255+
m_pclsSipStack->m_clsTcpSocketMap.Delete( m_clsList[i].m_strIp.c_str(), m_clsList[i].m_iPort );
256+
}
257+
else if( m_eTransport == E_SIP_TLS )
258+
{
259+
m_pclsSipStack->m_clsTlsSocketMap.Delete( m_clsList[i].m_strIp.c_str(), m_clsList[i].m_iPort );
260+
}
261+
250262
Delete( i, pclsEntry );
251263
}
252264
}

0 commit comments

Comments
 (0)