Comments (6)
This library does not utilize multiple threads. All operations are executed on whatever thread your application is doing the publication/subscription on.
Were there any exceptions thrown by the hub? How about any exceptions thrown by the application?
I cannot provide much help without knowing about your application as a whole. I suggest capturing a dump when this happens in production and going through it to see what the thread was doing at the time.
Alternatively you can download the source, add logging to Subscriptions.Unregister and observe the behaviour.
from easy.messagehub.
No exceptions, just hangs. Start and stop occures in one thread. It's a pity, but impossible to take dump from production server.
from easy.messagehub.
Try referencing the library directly and adding some logging. I cannot think of anything else.
from easy.messagehub.
I am closing the issue for now, feel free to re-open it once you have tried my suggestion or have more data we can work with.
from easy.messagehub.
I think that I hit a similar issue on one of our test server. The state of application is totally non responsive state, and interestingly all other threads of application stopped as well. Bit details as follows
Environment
- EasyMessageHub version
4.0.1
, I just noticed latest is5.0.0
is it too old? - ASP dot net core 3.1 based WebAPI application.
- Deployed on Ubuntu 18.04 LTS.
- In a Docker container.
- docker version is
Docker version 19.03.8, build afacb8b7f0
docker-compose
version isdocker-compose version 1.25.5, build 8a1c60f6
Observation
- In our application we are making ~3 subscriptions in a minutes and then unsubscribing them at end.
- We left our system running for overnight testing, and the second day in morning the whole application was stuck and the RESTFul endpoints are not accessible as well.
- Reviewing the log reveals that it went for
MessageHub.Instance.Unsubscribe
and never returns, blocking everything. - Since then I have been retrying to reproduce it again, but it haven't appeared again.
In short, I think what @GraySerg has reported, seems to be a real bug, I think we should try to find the root cause of issue.
@GraySerg , did you find any clue on your side?
from easy.messagehub.
@ummarbhutta Can you please upgrade to the latest and let me know if this happen again.
from easy.messagehub.
Related Issues (20)
- Registering IMessageHub with MessageHub HOT 1
- Subscribing a runtime type HOT 5
- Subscriber is receiving 3 messages when publisher is only sending 1 HOT 7
- Publish & Subscribe from different Project? HOT 2
- Non-singleton instances HOT 8
- How to setup one Server with Many cleints between ASP Core web and .net Console service HOT 1
- System.ObjectDisposedException: ThreadLocal object has been deleted. HOT 1
- NuGet package?
- Async handlers HOT 2
- Get MessageHub to play nicely with Autofac in a web application HOT 1
- Conditional subscription HOT 6
- Unflexible detection of the given type HOT 4
- Support for async actions HOT 2
- Add an async publisher HOT 4
- Available for dotnet core? HOT 2
- Add async version HOT 6
- MessageHub is holding objects in Memory HOT 18
- UnSubscribe method causes ArgumentNullException HOT 1
- Publish and subscribe from different threads HOT 2
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 easy.messagehub.