mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Clients that will be at the ClientProtoInfo protocol level (or above) will now receive an asynchronous INFO protocol when the server they connect to adds a *new* route. This means that when the cluster adds a new server, all clients in the cluster should now be notified of this new addition.
29 lines
1.1 KiB
Go
29 lines
1.1 KiB
Go
// Copyright 2012-2016 Apcera Inc. All rights reserved.
|
|
|
|
package server
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrConnectionClosed represents an error condition on a closed connection.
|
|
ErrConnectionClosed = errors.New("Connection Closed")
|
|
|
|
// ErrAuthorization represents an error condition on failed authorization.
|
|
ErrAuthorization = errors.New("Authorization Error")
|
|
|
|
// ErrAuthTimeout represents an error condition on failed authorization due to timeout.
|
|
ErrAuthTimeout = errors.New("Authorization Timeout")
|
|
|
|
// ErrMaxPayload represents an error condition when the payload is too big.
|
|
ErrMaxPayload = errors.New("Maximum Payload Exceeded")
|
|
|
|
// ErrMaxControlLine represents an error condition when the control line is too big.
|
|
ErrMaxControlLine = errors.New("Maximum Control Line Exceeded")
|
|
|
|
// ErrReservedPublishSubject represents an error condition when sending to a reserved subject, e.g. _SYS.>
|
|
ErrReservedPublishSubject = errors.New("Reserved Internal Subject")
|
|
|
|
// ErrBadClientProtocol signals a client requested an invalud client protocol.
|
|
ErrBadClientProtocol = errors.New("Invalid Client Protocol")
|
|
)
|