nats-io / nats.cr Goto Github PK
View Code? Open in Web Editor NEWCrystal client for NATS
License: Apache License 2.0
Crystal client for NATS
License: Apache License 2.0
When a connection goes away we do not get an error for nats-sub example.
So it never ends the block, keeps hearing for new messages.
I suspect that the feature is not implemented in Crystal lang
require "big"
is also required in nuid.cr.Further patching is required for connection.cr, see daliborfilus@616e96a.
@flush#empty?
are removed, the connection deadlocks:Unhandled exception: Attempt to lock a mutex recursively (deadlock) (Exception)
from /usr/share/crystal/src/mutex.cr:44:21 in 'lock'
from lib/nats/src/nats/connection.cr:132:5 in 'flush_outbound'
from lib/nats/src/nats/connection.cr:376:9 in 'close'
Can be seen via nats-pub binary:
$ ./bin/nats-pub -s localhost subject test
Published [subject] : 'test'
Error running at_exit handler: Attempt to lock a mutex recursively (deadlock)
I can't find any replacement for this, as far I can see.
Hello,
I have NATS server setup using a self-signed certificate.
When I try to connect to my cluster, I get the following error:
Unhandled exception: SSL_connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed (OpenSSL::SSL::Error)
from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/openssl/ssl/socket.cr:34:11 in 'initialize'
from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/openssl/ssl/socket.cr:3:5 in 'new'
from lib/nats/src/nats/connection.cr:528:7 in 'process_first_info'
from lib/nats/src/nats/connection.cr:97:7 in 'initialize'
from lib/nats/src/nats/connection.cr:55:5 in 'new'
from lib/nats/src/nats/connection.cr:139:7 in 'new'
from lib/nats/src/nats/connection.cr:131:7 in 'new'
from src/server.cr:13:13 in 'initialize'
from src/server.cr:12:5 in 'new'
from src/identity.cr:6:12 in '__crystal_main'
from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:105:5 in 'main_user_code'
from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:91:7 in 'main'
from ../../../../../usr/local/Cellar/crystal/0.35.1_1/src/crystal/main.cr:114:3 in 'main'
How do I correctly specify TLS options?
I want to detect the slow consumer state inside the subscription and resubscribe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.