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

Issue 914853002: Add CHECK() in UdpSocketLibevent to debug crbug.com/452121 (Closed)

Created:
5 years, 10 months ago by Sergey Ulanov
Modified:
5 years, 10 months ago
Reviewers:
mef
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

Return result from Close() for UDP sockets. Returning result from Close() allows to add CHECK() in remoting::UdpPacketSocket to debug linked bug. BUG=452121

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -21 lines) Patch
M content/browser/renderer_host/p2p/socket_host_udp_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/dns/address_sorter_posix_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/dns/mock_mdns_socket_factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socket_test_util.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M net/udp/datagram_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_client_socket.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/udp/udp_server_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_server_socket.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/udp/udp_socket_libevent.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_socket_libevent.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M net/udp/udp_socket_win.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M remoting/protocol/chromium_socket_factory.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Sergey Ulanov
5 years, 10 months ago (2015-02-11 01:28:13 UTC) #3
mef
Matt, what is the policy / guideline on adding CHECK()? https://codereview.chromium.org/914853002/diff/20001/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/914853002/diff/20001/net/udp/udp_socket_libevent.cc#newcode133 ...
5 years, 10 months ago (2015-02-11 19:25:35 UTC) #4
mmenke
On 2015/02/11 19:25:35, mef wrote: > Matt, what is the policy / guideline on adding ...
5 years, 10 months ago (2015-02-11 19:29:21 UTC) #5
Sergey Ulanov
On 2015/02/11 19:29:21, mmenke wrote: > On 2015/02/11 19:25:35, mef wrote: > > Matt, what ...
5 years, 10 months ago (2015-02-11 23:24:51 UTC) #6
mef
On 2015/02/11 23:24:51, Sergey Ulanov wrote: > On 2015/02/11 19:29:21, mmenke wrote: > > On ...
5 years, 10 months ago (2015-02-12 16:51:48 UTC) #7
Sergey Ulanov
Done. PTAL. Unfortunately returning result from Close() makes this CL bigger as I had to ...
5 years, 10 months ago (2015-02-12 19:05:01 UTC) #8
mef
lgtm
5 years, 10 months ago (2015-02-16 17:46:02 UTC) #9
mef
Hi Ricardo, this looks good to me, but I would appreciate if you could take ...
5 years, 10 months ago (2015-02-17 09:41:49 UTC) #10
rvargas (doing something else)
On 2015/02/17 09:41:49, mef wrote: > Hi Ricardo, > > this looks good to me, ...
5 years, 10 months ago (2015-02-17 19:12:53 UTC) #11
Sergey Ulanov
On 2015/02/17 19:12:53, rvargas wrote: > On 2015/02/17 09:41:49, mef wrote: > > Hi Ricardo, ...
5 years, 10 months ago (2015-02-17 23:53:02 UTC) #12
mef
5 years, 10 months ago (2015-02-18 10:51:32 UTC) #13
Message was sent while issue was closed.
On 2015/02/17 23:53:02, Sergey Ulanov wrote:
> On 2015/02/17 19:12:53, rvargas wrote:
> > On 2015/02/17 09:41:49, mef wrote:
> > > Hi Ricardo,
> > > 
> > > this looks good to me, but I would appreciate if you could take a look and
> > > comment if this breaks some assumptions.
> > > 
> > > thanks,
> > > -m
> > 
> > It's better to CHECK in close. That is the standard behavior on all
platforms
> > for base stuff (see scoped_file.cc and
> > http://www.chromium.org/developers/crash-reports/crash-with-invalid-handle).
I
> > think net should align better with that instead of diverging.
> 
> Done in crrev.com/316668. Thanks. Closing this CL.

Ricardo, thanks! Sergey, sorry for pushing you to a long and incorrect behavior.

Powered by Google App Engine
This is Rietveld 408576698