• Yuwei Huang's avatar
    [remoting host] Always sign out FTL when signaling disconnected · bc770788
    Yuwei Huang authored
    Previously we tried to reuse the FTL auth token for multiple connection
    attempts, and it will only reset if FTL returns an UNAUTHENTICATED
    error. This doesn't seem to work since we learnt from the last FTL
    outage that FTL servers can return NOT_FOUND for registration that has
    been deleted. So it's safer to just re-sign-in every time the signal
    strategy is disconnected, which doesn't take too much time.
    
    (Note that stream lifetime exceeded and pong timeout are handled inside
    FTLMessageReceptionChannel, which isn't affected by this change.)
    
    Bug: 992722
    Change-Id: Iee10f04e4ddeea71317b7859a943098d0f0c38fc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088633Reviewed-by: default avatarJoe Downing <joedow@chromium.org>
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#747375}
    bc770788
ftl_signal_strategy.cc 16.9 KB