diff --git a/inc/tcplistener.hpp b/inc/tcplistener.hpp
index 86b1e60defe8623da13f8467f21befb05125c78f..79582cc25f221b5915e8d56be7d5f034d12c2b04 100644
--- a/inc/tcplistener.hpp
+++ b/inc/tcplistener.hpp
@@ -32,7 +32,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public:
 
diff --git a/inc/tcpstream.hpp b/inc/tcpstream.hpp
index fcb0801e71ad766535a600902a4949b3ce9e3b45..72f9af5947aa07a8fc291cfcca285e1e8e435da5 100644
--- a/inc/tcpstream.hpp
+++ b/inc/tcpstream.hpp
@@ -33,7 +33,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public:
 
diff --git a/inc/udpsocket.hpp b/inc/udpsocket.hpp
index 112e329e654a98923f24676eab6cd52f07eee154..6386b022c61b21df7e938c340756246da8816123 100644
--- a/inc/udpsocket.hpp
+++ b/inc/udpsocket.hpp
@@ -40,7 +40,7 @@ private:
     /**
      * @brief If set to true, the socket is automatically closed on destruction
      */
-    bool autoclose = false;
+    bool autoclose = true;
 
 public: