change some parameters in the library to meet the needs of the website httpbin.org

Fork of MiniTLS-GPL by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
shiyilei
Date:
Fri Feb 06 06:17:33 2015 +0000
Parent:
4:cbaf466d717d
Commit message:
change some parameters in the library to meet the needs of httpbin.org

Changed in this revision

cpp/TLSSocket.h Show annotated file Show diff for this revision Revisions of this file
--- a/cpp/TLSSocket.h	Tue Jun 10 14:23:09 2014 +0000
+++ b/cpp/TLSSocket.h	Fri Feb 06 06:17:33 2015 +0000
@@ -33,7 +33,7 @@
 
 #include "tls/tls_socket.h"
 
-#define TLSSOCKET_BUF_SIZE 5000//804
+#define TLSSOCKET_BUF_SIZE 5420//804
 
 /** TLS Socket
  * \param pMiniTLS pointer to MiniTLS instance
@@ -55,7 +55,7 @@
   minitls_err_t close();
 
 private:
-  uint8_t m_writeBuf[TLSSOCKET_BUF_SIZE];
+  uint8_t m_writeBuf[500];
   uint8_t m_readBuf[TLSSOCKET_BUF_SIZE];
 
   tls_socket_t m_sock;