Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NATSConnectionException: Authentication Timeout #883

Open
Zetanova opened this issue Mar 28, 2024 · 0 comments
Open

NATSConnectionException: Authentication Timeout #883

Zetanova opened this issue Mar 28, 2024 · 0 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@Zetanova
Copy link
Contributor

Observed behavior

The nats.client <1.1.4 has sometimes an issue to connect to a server with "Authentication Timeout" exception.
This happens sometimes on vs debug sessions on windows or docker-desktop and in production under k8s
with dotnet 6 and 8. The nats server has an auth timeout of 5s.

With an new aspnet project in production that triggered this issue not only sometimes,
but always at startup in k8s

The nats.client requires real-concurrency (2+ cores) to connect.
A cpu limit env. like docker run --cpus=1 will trigger the lock
after the UserSignatureEventHandler call

Expected behavior

the connection should succeed with cpu limit of 1

Server and client version

nats.client 1.1.4

Host environment

windows and docker
dotnet 6 & 8

Steps to reproduce

set cpu limit to 1 in docker or resources.limits.cpu: 500m in kubernetes

@Zetanova Zetanova added the defect Suspected defect such as a bug or regression label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

1 participant