Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
77d3c9ec
"vscode:/vscode.git/clone" did not exist on "d664ca18f242ec9bf6b4251065a23bbf46fcc490"
Commit
77d3c9ec
authored
Oct 20, 2012
by
Davis King
Browse files
Disabled Nagle's algorithm to reduce latency for some BSP use cases.
parent
4ffd067a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/bsp/bsp.h
dlib/bsp/bsp.h
+5
-1
No files found.
dlib/bsp/bsp.h
View file @
77d3c9ec
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment