diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-22 21:22:29 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-22 21:22:29 +0000 |
| commit | bfd5528f28264772a245dc29f41d4bb5d29fb1eb (patch) | |
| tree | c9f9beb72d7a91baaaf84117d6b541941306b524 /PICA_node.h | |
| parent | ba711be9bdce4b3d0ced9bff5e2399aa3442e611 (diff) | |
| download | pica-pica-bfd5528f28264772a245dc29f41d4bb5d29fb1eb.tar.gz pica-pica-bfd5528f28264772a245dc29f41d4bb5d29fb1eb.zip | |
fixed NEWCONN_BUFSIZE to make it equal to CONNID packet size in order to prevent interpreting TLS session data that follows this packet as some PICA protocol message. This is workaround, problem must be fixed in more proper way
git-svn-id: svn://localhost/project_picapica/trunk@265 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_node.h')
| -rwxr-xr-x | PICA_node.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/PICA_node.h b/PICA_node.h index 43b24f5..27011ee 100755 --- a/PICA_node.h +++ b/PICA_node.h @@ -67,9 +67,9 @@ #define PICA_NETWORKNAME "TESTNET" // TEMP //CONF -#define NEWCONN_BUFSIZE 64 -//#define CL_RBUFSIZE 32 -//#define CL_WBUFSIZE 128 +#define NEWCONN_BUFSIZE 58 //FIXME this is the size of CONNID packet, this packet is followed by TLS session negotiation data. + //TLS data must not be interpreted as some PICA packet by PICA_processdatastream(), + //so buffer size is limited by the size of CONNID. #define DEFAULT_BUF_SIZE 4096 |
