mirror of https://github.com/davisking/dlib.git
Disabled Nagle's algorithm to reduce latency for some BSP use cases.
This commit is contained in:
parent
4ffd067ac0
commit
77d3c9ec66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue