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

Issue 1728853006: net: merge two versions of SetTCPNoDelay() function into one (Closed)

Created:
4 years, 10 months ago by tfarina
Modified:
4 years, 9 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

net: merge DisableNagle() with two other SetTCPNoDelay() implementations This patch merges SetTCPNoDelay() function from tcp_socket_posix.cc, SetTCPNoDelay() function from tcp_socket_util.cc and DisableNagle() function from tcp_socket_win.cc, into a single slightly improved one in tcp_socket.cc with the following prototype: bool SetTCPNoDelay(SocketDescriptor socket, bool no_delay); BUG=None TEST=net_unittests R=eroman@chromium.org Committed: https://crrev.com/2d1f2621d8e6dd10feba6cab380fb46d60cb3098 Cr-Commit-Position: refs/heads/master@{#378129}

Patch Set 1 #

Patch Set 2 : get rid of DisableNagle() too #

Patch Set 3 : SocketDescriptor #

Patch Set 4 : export it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -60 lines) Patch
M net/net.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/tcp_socket.h View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download
A net/socket/tcp_socket.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M net/socket/tcp_socket_posix.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M net/socket/tcp_socket_win.cc View 1 3 chunks +2 lines, -32 lines 0 comments Download
M net/tools/flip_server/acceptor_thread.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/flip_server/tcp_socket_util.h View 1 chunk +0 lines, -8 lines 0 comments Download
M net/tools/flip_server/tcp_socket_util.cc View 4 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
tfarina
I think it will be easier to get this in (and thus reviewed) if we ...
4 years, 10 months ago (2016-02-26 15:51:09 UTC) #2
eroman
This change will make more sense if it handles the Windows version as well, since ...
4 years, 10 months ago (2016-02-26 17:00:14 UTC) #3
tfarina
On 2016/02/26 17:00:14, eroman wrote: > This change will make more sense if it handles ...
4 years, 10 months ago (2016-02-26 18:25:49 UTC) #4
eroman
Update the CL description: > The third one, DisableNagle() from tcp_socket_win.cc will be merged into ...
4 years, 10 months ago (2016-02-26 20:21:24 UTC) #5
tfarina
On 2016/02/26 20:21:24, eroman wrote: > Update the CL description: > Tried :) > > ...
4 years, 10 months ago (2016-02-26 20:30:38 UTC) #10
eroman
lgtm
4 years, 10 months ago (2016-02-26 20:40:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728853006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728853006/60001
4 years, 9 months ago (2016-02-27 08:21:36 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-02-27 08:45:36 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2d1f2621d8e6dd10feba6cab380fb46d60cb3098 Cr-Commit-Position: refs/heads/master@{#378129}
4 years, 9 months ago (2016-02-27 08:47:22 UTC) #17
nektarios
4 years, 9 months ago (2016-02-29 21:03:01 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1744153003/ by nektar@chromium.org.

The reason for reverting is: net-unittests failure on Mac.
https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests/builds/169....

Powered by Google App Engine
This is Rietveld 408576698