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

Issue 10900028: Fix UdpPacketSocket to handle callbacks after the socket is destroyed. (Closed)

Created:
8 years, 3 months ago by Sergey Ulanov
Modified:
8 years, 3 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Fix UdpPacketSocket to handle callbacks after the socket is destroyed. PPB_UDPSocket_Private doesn't make guarantees about callbacks not being called after Close() - we may still get some callbacks asynchronously with error codes different from PP_ERROR_ABORTED. UdpPacketSocket wasn't handling this case properly. BUG=143839 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=153972

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M remoting/client/plugin/pepper_packet_socket_factory.cc View 8 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sergey Ulanov
8 years, 3 months ago (2012-08-29 17:51:02 UTC) #1
Wez
I do like the fact that using WeakPtrFactory deals with this in a type safe ...
8 years, 3 months ago (2012-08-29 18:03:36 UTC) #2
Sergey Ulanov
On 2012/08/29 18:03:36, Wez wrote: > I do like the fact that using WeakPtrFactory deals ...
8 years, 3 months ago (2012-08-29 19:37:18 UTC) #3
Wez
lgtm
8 years, 3 months ago (2012-08-29 20:06:47 UTC) #4
commit-bot: I haz the power
8 years, 3 months ago (2012-08-29 20:16:55 UTC) #5

Powered by Google App Engine
This is Rietveld 408576698