summaryrefslogtreecommitdiffstats
path: root/PICA_node.h
diff options
context:
space:
mode:
Diffstat (limited to 'PICA_node.h')
-rwxr-xr-xPICA_node.h6
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