- Fixed loop termination bug.
- Chose a better default buffer size.
This commit is contained in:
Paul Beckingham 2013-06-08 23:34:06 -04:00
parent 907862b741
commit 8e5b57954d
2 changed files with 2 additions and 3 deletions

View file

@ -42,7 +42,7 @@
#include <netdb.h>
#include <i18n.h>
#define MAX_BUF 1024
#define MAX_BUF 16384
////////////////////////////////////////////////////////////////////////////////
static void gnutls_log_function (int level, const char* message)
@ -196,7 +196,7 @@ void TLSClient::send (const std::string& data)
int total = 0;
int remaining = packet.length ();
while (total < remaining)
while (total < packet.length ())
{
int status;
do

View file

@ -26,7 +26,6 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <iostream>
#include <sstream>
#include <inttypes.h>
#include <Context.h>