Changeset 738 in code for trunk/user.go


Ignore:
Timestamp:
Dec 2, 2021, 6:29:44 PM (4 years ago)
Author:
contact
Message:

Cancel pending commands on downstream disconnect

If a client queues a high number of commands and then disconnects,
remove all of the pending commands. This avoids unnecessarily
sending commands whose results won't be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.go

    r736 r738  
    663663
    664664                        u.forEachUpstream(func(uc *upstreamConn) {
     665                                uc.cancelPendingCommandsByDownstreamID(dc.id)
    665666                                uc.updateAway()
    666667                                uc.updateMonitor()
Note: See TracChangeset for help on using the changeset viewer.