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

This commit is contained in:
Davis King 2012-10-20 15:31:19 -04:00
parent 4ffd067ac0
commit 77d3c9ec66

View File

@ -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;