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

Unified Diff: net/socket/tcp_client_socket.cc

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blimp Created 4 years, 4 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
Index: net/socket/tcp_client_socket.cc
diff --git a/net/socket/tcp_client_socket.cc b/net/socket/tcp_client_socket.cc
index 1c292bb807394d7ddf924fafeb8f7b09b3544d55..4be84cfa0a70dc91d5ead361bfe00151bd4bbf8c 100644
--- a/net/socket/tcp_client_socket.cc
+++ b/net/socket/tcp_client_socket.cc
@@ -309,6 +309,10 @@ int TCPClientSocket::SetSendBufferSize(int32_t size) {
return socket_->SetSendBufferSize(size);
}
+int TCPClientSocket::SetDoNotFragment(bool do_not_fragment) {
+ return socket_->SetSendBufferSize(do_not_fragment);
Jeremy Dorfman 2016/08/10 23:56:57 Copy/paste error?
Ryan Hamilton 2016/08/11 19:47:31 Indeed, but I've reverted this change since I made
+}
+
bool TCPClientSocket::SetKeepAlive(bool enable, int delay) {
return socket_->SetKeepAlive(enable, delay);
}

Powered by Google App Engine
This is Rietveld 408576698