Comments (1)
I ended up further inlining the via: registry lookup:
Registry.lookup(Tortoise.Registry, {Tortoise.Connection, connection_id})
|> case do
[{pid, nil}] -> GenServer.call(pid, :disconnect)
_ -> connection_id |> IO.inspect(label: "CONNECTION NOT PRESENT")
end
This seems kind of roundabout, but it works. I think disconnect() should never fail. So I'll always use this instead of the current disconnect/1 API.
from tortoise.
Related Issues (20)
- Subscription issues with vernemq HOT 1
- Can you give me a example HOT 4
- Handle :ping_timeout more gracefully? HOT 1
- Not defining a handler prevents messages from being published HOT 7
- Beam VM becomes stucked when the number of connections is high HOT 5
- Specifying a handler module that does not implement the handler behaviour fails unintuitevly HOT 1
- errors when restarting broker HOT 2
- Questioning the handling of clean_session HOT 3
- Error on use ActiveMQ Artemis (MQTT protocol enabled) HOT 3
- AWS IoT and publish freeze on Nerves HOT 3
- No matching handle_info in Tortoise.Connection HOT 1
- subscribe can timeout for no good reason HOT 5
- Send messages from Elixir to Tortoise.Connection HOT 4
- Publishing a message fails when there is no connection to a broker HOT 1
- "Unexpected async result" and need to explicitly re-subscribe to topics. HOT 8
- Best way to restart connections? HOT 1
- tortoise311 fork? HOT 5
- unknown registery: Tortoise.Regsitry HOT 1
- How to provide backpressure when too many incoming messages?
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 tortoise.