Comments (7)
Hi @orchestd will check, but just to confirm that you only saw this in v2.9.X series?
from nats-server.
Hi.
2.9.16 was the version we're using, changing the version to 2.9.21 was just "in case" the specific version we chose was buggy, we can try a diff one .
BTW, we have reconstructed the issue in a more vanilla manner
- wrote a small program that connect nats
- ran the nats server with auth - that has 1 user (alice:foo)
- ran the below code X 1000 times on parallel
- got the error
then we ran the same without auth - all was ok
code:
package main
import (
"fmt"
"github.com/nats-io/nats.go"
"time"
)
func main() {
testConnection("defaultBackend", "nats://some.server:4222", "alice", "foo")
}
func testConnection(entity string, url string, username string, password string) {
nc, err := nats.Connect(url, nats.UserInfo(username, password), nats.Name(entity)
if err != nil {
fmt.Println("ERROR: " + err.Error())
}
defer nc.Close()
}
from nats-server.
Update:
changing
authorization {
timeout: 1
to
authorization {
timeout: 8
"solved" the issue, but now its a risk of false authorization window
from nats-server.
Any ideas on how can I avoid the Readloop processing time issue without setting authorization timeout to a large number which is a security risk ?
from nats-server.
Can you share the complete server config file that accompanies the test that shows the issue?
from nats-server.
The COMPLETE configuration is on the first post (nothing fancy needed on config - its the bare minimum)
reposting here:
listen: 0.0.0.0:4222
websocket {
listen: 0.0.0.0:9222
compression: false
no_tls: true
}
authorization {
timeout: 4
SOME_PERM = {
subscribe = ["xxx.>", "yyy.>"]
publish = {
deny: ">"
}
}
users [
{ user: super, password: "....." }
{ user: regular, password: "....", permissions: $SOME_PERM }
]
}
from nats-server.
So I used your config file and your program and ran it in parallel 100 times with no issues.
So we must be doing something different. So I am running a v2.10.15 server with the config above and the program (changed the user/pass). So could you show exactly what command you used to run the program and the exact program code used?
from nats-server.
Related Issues (20)
- Nats-Expected-Last-Subject-Sequence forwarded to source streams HOT 2
- Ability to set consumer_name for Key Value store HOT 2
- Range-based subscriptions
- Allow stream "republish" to republish multiple subjects HOT 8
- Allow publishers to specify a different subject for "Nats-Expected-Last-Subject-Sequence" HOT 5
- MQTT client not receiving messages HOT 13
- Storage files for memory consumers are not being deleted
- Support Optional includes in configuration file HOT 1
- Allow setting message timestamp HOT 3
- Allow variables to be used as part of a value in configuration HOT 1
- Please sign NATS releases HOT 7
- JetStream WorkQueue invalid NumDelivered values when consumer fails HOT 9
- Outbound gateway connections stuck waiting on first INFO response HOT 2
- JetStream KV gets consumer stuck in the cluster server HOT 9
- The connection issue between gateways in different Kubernetes NATS clusters. HOT 12
- Embedding NATS makes developers lose the opportunity to process os signals HOT 2
- Getting consumer pending messages count is inconsistent HOT 3
- wildcards should have permissions with user HOT 6
- '408 Request Timeout' instead of '404 No Messages' from $JS.API.CONSUMER.MSG.NEXT.<stream>.<consumer> HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nats-server.