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

Issue 2915193003: Add heartbeat timeout. (Closed)

Created:
3 years, 6 months ago by Sergey Ulanov
Modified:
3 years, 6 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add heartbeat timeout. Added timeout for outgoing messages in remoting::HeartbeatSender. XMPP connection is reset after 2 timed out heartbeats. Also updated the class and the unittest to use constexpr TimeDelta for all time constants. BUG=728851 Review-Url: https://codereview.chromium.org/2915193003 Cr-Commit-Position: refs/heads/master@{#476744} Committed: https://chromium.googlesource.com/chromium/src/+/b6e12e26514866f3e92bfed8725a3338f0e4409c

Patch Set 1 #

Total comments: 2

Patch Set 2 : 30 seconds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -53 lines) Patch
M remoting/host/heartbeat_sender.h View 3 chunks +9 lines, -7 lines 0 comments Download
M remoting/host/heartbeat_sender.cc View 1 8 chunks +47 lines, -36 lines 0 comments Download
M remoting/host/heartbeat_sender_unittest.cc View 8 chunks +40 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Sergey Ulanov
Currently heartbeats are not retried after timeout. It simply logs an error and disconnects XMPP ...
3 years, 6 months ago (2017-06-01 23:12:41 UTC) #2
Jamie
LGTM modulo my comment about the length of the timeout. https://codereview.chromium.org/2915193003/diff/1/remoting/host/heartbeat_sender.cc File remoting/host/heartbeat_sender.cc (right): https://codereview.chromium.org/2915193003/diff/1/remoting/host/heartbeat_sender.cc#newcode54 ...
3 years, 6 months ago (2017-06-02 00:53:52 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/2915193003/diff/1/remoting/host/heartbeat_sender.cc File remoting/host/heartbeat_sender.cc (right): https://codereview.chromium.org/2915193003/diff/1/remoting/host/heartbeat_sender.cc#newcode54 remoting/host/heartbeat_sender.cc:54: base::TimeDelta::FromSeconds(10); On 2017/06/02 00:53:52, Jamie wrote: > This seems ...
3 years, 6 months ago (2017-06-02 18:37:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2915193003/20001
3 years, 6 months ago (2017-06-02 18:37:43 UTC) #7
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 19:12:00 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b6e12e26514866f3e92bfed8725a...

Powered by Google App Engine
This is Rietveld 408576698