mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TLS
- Fixed loop termination bug. - Chose a better default buffer size.
This commit is contained in:
parent
907862b741
commit
8e5b57954d
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <inttypes.h>
|
||||
#include <Context.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue