aboutsummaryrefslogtreecommitdiff
path: root/src/stable/client.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-31 16:12:54 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-31 16:12:54 -0700
commitfc83cb3fa5b15e9fb20a9180a3880297cf398de7 (patch)
treea55a0174fdbfd77b9b325b089b1ec314284b5644 /src/stable/client.cpp
parenta49af97abf091a32f6ec2c3985aa0890ded65d9c (diff)
downloadlibbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.gz
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.bz2
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.xz
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.zip
Issue found with recycled fds.
We don't always clean up instantly, but the system is reusing ids before we're ready.
Diffstat (limited to 'src/stable/client.cpp')
-rw-r--r--src/stable/client.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stable/client.cpp b/src/stable/client.cpp
index 159d103..34dc798 100644
--- a/src/stable/client.cpp
+++ b/src/stable/client.cpp
@@ -13,8 +13,6 @@
13#include "bu/clientlinkfactory.h" 13#include "bu/clientlinkfactory.h"
14#include "bu/mutexlocker.h" 14#include "bu/mutexlocker.h"
15 15
16/** Read buffer size. */
17#define RBS (2000) // 1500 is the nominal MTU for ethernet, it's a good guess
18#ifdef PROFILE_BU_SERVER 16#ifdef PROFILE_BU_SERVER
19#define BU_PROFILE_START( x ) Bu::Profiler::getInstance().startEvent( x ) 17#define BU_PROFILE_START( x ) Bu::Profiler::getInstance().startEvent( x )
20#define BU_PROFILE_END( x ) Bu::Profiler::getInstance().endEvent( x ) 18#define BU_PROFILE_END( x ) Bu::Profiler::getInstance().endEvent( x )