Skip to content

Commit 872f26d

Browse files
committed
change TLS recv buffer size to 16384. change TCP/TLS SIP message buffer size to 16384.
1 parent 0d42298 commit 872f26d

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

SipStack/SipBuffer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#ifndef _SIP_BUFFER_H_
2020
#define _SIP_BUFFER_H_
2121

22-
#define SIP_MAX_BUF_SIZE 8192
22+
// TCP 기반 SIP 메시지 수신 버퍼 최대 크기 = openssl 의 SSL_read 함수의 최대 버퍼 크기
23+
#define SIP_MAX_BUF_SIZE 16384
2324

2425
#include "SipUdp.h"
2526

SipStack/SipStackVersion.h

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

22-
#define SIP_STACK_VERSION "0.26"
22+
#define SIP_STACK_VERSION "0.27"
2323

2424
/* 버전 정보
2525
26+
= 버전 0.27 ( 2016년 9월 20일 ) =
27+
* TLS 수신 버퍼 크기를 16384 로 수정함
28+
* TCP/TLS SIP 메시지 버퍼 크기를 16384 로 수정함
29+
2630
= 버전 0.26 ( 2015년 8월 18일 ) =
2731
* stateful stateless 기능을 설정할 수 있다.
2832
* 삭제된 TLS 세션으로 TLS 메시지를 전송하지 못 하도록 수정함

SipStack/SipTcpThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ THREAD_API SipTcpThread( LPVOID lpParameter )
5454
CTcpSessionList clsSessionList( pclsSipStack, E_SIP_TCP );
5555
CTcpComm clsTcpComm;
5656
int n, i, iBufLen, iThreadId;
57-
char szBuf[4096], *pszBuf;
57+
char szBuf[2048], *pszBuf;
5858
time_t iTime, iDeleteTime;
5959

6060
pclsSipStack->IncreateTcpThreadCount( iThreadId );

SipStack/SipTlsThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ THREAD_API SipTlsThread( LPVOID lpParameter )
5858
CTcpSessionList clsSessionList( pclsSipStack, E_SIP_TLS );
5959
CTcpComm clsTcpComm;
6060
int n, i, iBufLen, iThreadId;
61-
char szBuf[4096], *pszBuf;
61+
char szBuf[SIP_MAX_BUF_SIZE], *pszBuf;
6262
time_t iTime, iDeleteTime;
6363

6464
pclsSipStack->IncreateTcpThreadCount( iThreadId );

0 commit comments

Comments
 (0)