diff --git a/dlib/bsp/bsp.h b/dlib/bsp/bsp.h index 2c09c8bc3..9a634fe7a 100644 --- a/dlib/bsp/bsp.h +++ b/dlib/bsp/bsp.h @@ -35,7 +35,9 @@ namespace dlib buf(con), stream(&buf), terminated(false) - {} + { + con->disable_nagle(); + } bsp_con( scoped_ptr& conptr @@ -46,6 +48,8 @@ namespace dlib { // make sure we own the connection conptr.swap(con); + + con->disable_nagle(); } scoped_ptr con;