mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[CHANGED] Gateway: Switch all accounts to interest-only mode
We are phasing out the optimistic-only mode. Servers accepting inbound gateway connections will switch the accounts to interest-only mode. The servers with outbound gateway connection will check interest and ignore the "optimistic" mode if it is known that the corresponding inbound is going to switch the account to interest-only. This is done using a boolean in the gateway INFO protocol. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -3168,6 +3168,9 @@ func TestMonitorGatewayz(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMonitorGatewayzAccounts(t *testing.T) {
|
||||
GatewayDoNotForceInterestOnlyMode(true)
|
||||
defer GatewayDoNotForceInterestOnlyMode(false)
|
||||
|
||||
resetPreviousHTTPConnections()
|
||||
|
||||
// Create bunch of Accounts
|
||||
|
||||
Reference in New Issue
Block a user