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

Issue 1566023002: Fix bug 574524: DtlsTransportChannel crashes after SSL closes remotely (Closed)

Created:
4 years, 11 months ago by guoweis_webrtc
Modified:
4 years, 10 months ago
Reviewers:
pthatcher2, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix bug 574524: DtlsTransportChannel crashes after SSL closes remotely When remote side closes, opensslstreamadapter could return SR_EOS which will not trigger upper layer to clean up what's left in the StreamInterfaceChannel. The result of this is when there are more packets coming in, the Write on the StreamInterfaceChannel will overflow the buffer. The fix here is that when receiving the remote side close signal, we also close the underneath StreamInterfaceChannel which will clean up the queue to prevent overflow. BUG=574524 TBR=pthatcher@webrtc.org Committed: https://crrev.com/4cc9f98e4c10741a28cd0c715e6c130cb30dbd0f Cr-Commit-Position: refs/heads/master@{#11751}

Patch Set 1 #

Patch Set 2 : improve comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -1 line) Patch
M webrtc/base/bufferqueue.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/base/bufferqueue.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
guoweis_webrtc
4 years, 11 months ago (2016-01-06 23:48:39 UTC) #4
pthatcher2
lgtm Honghai, can you submit this?
4 years, 10 months ago (2016-02-17 23:20:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566023002/20001
4 years, 10 months ago (2016-02-23 20:25:04 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/3633)
4 years, 10 months ago (2016-02-23 20:29:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566023002/20001
4 years, 10 months ago (2016-02-24 19:08:36 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-24 19:10:09 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 19:10:13 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4cc9f98e4c10741a28cd0c715e6c130cb30dbd0f
Cr-Commit-Position: refs/heads/master@{#11751}

Powered by Google App Engine
This is Rietveld 408576698