Commit 77d3c9ec authored by Davis King's avatar Davis King

Disabled Nagle's algorithm to reduce latency for some BSP use cases.

parent 4ffd067a
...@@ -35,7 +35,9 @@ namespace dlib ...@@ -35,7 +35,9 @@ namespace dlib
buf(con), buf(con),
stream(&buf), stream(&buf),
terminated(false) terminated(false)
{} {
con->disable_nagle();
}
bsp_con( bsp_con(
scoped_ptr<connection>& conptr scoped_ptr<connection>& conptr
...@@ -46,6 +48,8 @@ namespace dlib ...@@ -46,6 +48,8 @@ namespace dlib
{ {
// make sure we own the connection // make sure we own the connection
conptr.swap(con); conptr.swap(con);
con->disable_nagle();
} }
scoped_ptr<connection> con; scoped_ptr<connection> con;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment