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

Issue 1025533002: PCHECK when closing UDP sockets only when errno=EBADF. (Closed)

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

PCHECK when closing UDP sockets only when errno=EBADF. This is an attempto to resolve bug 461246. Issues there is that close() fails sometimes on OSX for unknown reason. My guess is that it close() fails with EIO error for some reason, but EIO may be ignored in this case as the sockets gets closed anyway. BUG=461246 Committed: https://crrev.com/494d408657f49528aa43827bc3602df1331ebfe3 Cr-Commit-Position: refs/heads/master@{#321483}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M net/udp/udp_socket_libevent.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
Sergey Ulanov
5 years, 9 months ago (2015-03-19 21:43:35 UTC) #2
rvargas (doing something else)
On 2015/03/19 21:43:35, Sergey Ulanov wrote: But the previous change was in response to a ...
5 years, 9 months ago (2015-03-19 22:30:21 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/1025533002/diff/1/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/1025533002/diff/1/net/udp/udp_socket_libevent.cc#newcode130 net/udp/udp_socket_libevent.cc:130: PCHECK(errno != EBADF); How about filtering by EIO instead ...
5 years, 9 months ago (2015-03-19 22:34:05 UTC) #4
Sergey Ulanov
On 2015/03/19 22:30:21, rvargas wrote: > On 2015/03/19 21:43:35, Sergey Ulanov wrote: > > But ...
5 years, 9 months ago (2015-03-19 22:39:37 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/1025533002/diff/1/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/1025533002/diff/1/net/udp/udp_socket_libevent.cc#newcode130 net/udp/udp_socket_libevent.cc:130: PCHECK(errno != EBADF); On 2015/03/19 22:34:05, rvargas wrote: > ...
5 years, 9 months ago (2015-03-19 22:53:36 UTC) #6
rvargas (doing something else)
lgtm https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc#newcode130 net/udp/udp_socket_libevent.cc:130: int last_error = errno; You may be interested ...
5 years, 9 months ago (2015-03-19 23:06:34 UTC) #7
rvargas (doing something else)
https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc#newcode130 net/udp/udp_socket_libevent.cc:130: int last_error = errno; On 2015/03/19 23:06:33, rvargas wrote: ...
5 years, 9 months ago (2015-03-19 23:07:18 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/1025533002/diff/40001/net/udp/udp_socket_libevent.cc#newcode130 net/udp/udp_socket_libevent.cc:130: int last_error = errno; On 2015/03/19 23:07:18, rvargas wrote: ...
5 years, 9 months ago (2015-03-19 23:52:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025533002/60001
5 years, 9 months ago (2015-03-19 23:53:09 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-20 01:12:04 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 01:12:41 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/494d408657f49528aa43827bc3602df1331ebfe3
Cr-Commit-Position: refs/heads/master@{#321483}

Powered by Google App Engine
This is Rietveld 408576698