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
buf(con),
stream(&buf),
terminated(false)
{}
{
con->disable_nagle();
}
bsp_con(
scoped_ptr<connection>& conptr
......@@ -46,6 +48,8 @@ namespace dlib
{
// make sure we own the connection
conptr.swap(con);
con->disable_nagle();
}
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