mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Merge pull request #1334 from nats-io/leafnode_bug
Fix for bug when requestor and leafnode on same server.
This commit is contained in:
@@ -1045,6 +1045,8 @@ func (a *Account) createRespWildcard() []byte {
|
||||
a.siReplyClient = c
|
||||
a.mu.Unlock()
|
||||
}
|
||||
// Now check on leafnode updates.
|
||||
s.updateLeafNodes(a, sub, 1)
|
||||
}
|
||||
|
||||
return pre
|
||||
|
||||
@@ -1493,8 +1493,8 @@ func (c *client) processLeafMsgArgs(arg []byte) error {
|
||||
// processInboundLeafMsg is called to process an inbound msg from a leaf node.
|
||||
func (c *client) processInboundLeafMsg(msg []byte) {
|
||||
// Update statistics
|
||||
c.in.msgs++
|
||||
// The msg includes the CR_LF, so pull back out for accounting.
|
||||
c.in.msgs++
|
||||
c.in.bytes += int32(len(msg) - LEN_CR_LF)
|
||||
|
||||
// Check pub permissions
|
||||
|
||||
Reference in New Issue
Block a user