mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +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 <netdb.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
|
||||||
#define MAX_BUF 1024
|
#define MAX_BUF 16384
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static void gnutls_log_function (int level, const char* message)
|
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 total = 0;
|
||||||
int remaining = packet.length ();
|
int remaining = packet.length ();
|
||||||
|
|
||||||
while (total < remaining)
|
while (total < packet.length ())
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
do
|
do
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue