Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Unified Diff: net/tools/flip_server/tcp_socket_util.h

Issue 1728853006: net: merge two versions of SetTCPNoDelay() function into one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: export it Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/flip_server/acceptor_thread.cc ('k') | net/tools/flip_server/tcp_socket_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/tcp_socket_util.h
diff --git a/net/tools/flip_server/tcp_socket_util.h b/net/tools/flip_server/tcp_socket_util.h
index cbd35e7260c6398a040168bcf17b6809f8cc8529..4e2e910ef431126a3af2380fa573f917ff5ec244 100644
--- a/net/tools/flip_server/tcp_socket_util.h
+++ b/net/tools/flip_server/tcp_socket_util.h
@@ -9,14 +9,6 @@
namespace net {
-// This function disables buffering in the kernel. By default, TCP sockets
-// will wait up to 200ms for more data to complete a packet before transmitting.
-// After calling this function, the kernel will not wait. See TCP_NODELAY in
-// `man 7 tcp`.
-// This function returns true if it succeeds to set the TCP_NODELAY option,
-// otherwise returns false.
-bool SetTCPNoDelay(int fd);
-
// Summary:
// creates a socket for listening, and bind()s and listen()s it.
// Args:
« no previous file with comments | « net/tools/flip_server/acceptor_thread.cc ('k') | net/tools/flip_server/tcp_socket_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698