From 37d0d9b3f55329c44c5ef4ebcce7334694fc5969 Mon Sep 17 00:00:00 2001 From: VaclavT Date: Sun, 7 Nov 2021 14:45:33 +0100 Subject: [PATCH] bigger buffer in tcpnet will be improved in future --- clib/tcpnet.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clib/tcpnet.cpp b/clib/tcpnet.cpp index bfbf6b9..aaefcbf 100644 --- a/clib/tcpnet.cpp +++ b/clib/tcpnet.cpp @@ -11,6 +11,10 @@ #include "tcpnet.h" +#define TCPNET_BUFFER_SIZE 131072 + + + void error(const char *msg) { // perror(msg); throw std::runtime_error(msg); @@ -20,8 +24,6 @@ void error(const char *msg) { TcpNet::TcpNet() {} -#define TCPNET_BUFFER_SIZE 16256 - int TcpNet::server(int portno, std::function(std::string)> process_request) const { int sockfd, newsockfd;