Comments (6)
yes indeed: the attribute is initially set here
autobahn-python/autobahn/wamp/component.py
Line 534 in 01165cf
and before stopping starts it is set here
autobahn-python/autobahn/wamp/component.py
Line 718 in 01165cf
but it isn't reset once the stopping has finished (the component session left)
from autobahn-python.
I should note that even if the attribute would be reset correctly, you can't start the component again anyways, so the component object is for the bin, and the value of the attribute of a finished component is questionable .. in a way
from autobahn-python.
Why i can not restart a component ?
That's what i do in my code and it seems to work or i missed something
from autobahn-python.
Why i can not restart a component ?
as far as I see, there is no public API to restart
That's what i do in my code and it seems to work or i missed something
@meejah any hints from you side, is component supposed to be restartable? if so, how?
from autobahn-python.
True, it is not a plublic API
joined = asyncio.Event()
@comp.on_join
def _(session, details):
comp.session = session
joined.set()
loop = asyncio.get_event_loop()
run_cb = autobahn.wamp.component._run(loop, comp)
await joined.wait()
For me it is useful when you registered plenty of services but you just want disconnect/connect a component
from autobahn-python.
It's been a while since I've thought about Component ;) but I don't believe I considered re-starting.
The "state-machine" of Component is basically a one-way trip towards "done" currently .. although because clients have to allow the possibility of re-connect, it could certainly be possible to make "done -> start" a valid thing to do.
I'm not clear on the use-case: is it just to dis/re-connect? Or I guess, what does "re-starting" a component mean exactly?
from autobahn-python.
Related Issues (20)
- E2E Encryption: Publishing to N subscribers HOT 11
- Full details about WebSocket connections logged at level info HOT 1
- asyncio rawsocket clients crash on WELCOME message HOT 1
- Twisted + websockets + TLS (wss) gives "invalid certificate" in Safari (and only there)
- wss:// URIs are not recognized HOT 2
- Successful connection doesn't reset the exponential backoff state HOT 2
- Update asyncio examples HOT 1
- Rapid Cancelling Of Tasks Can Cause InvalidStateError
- Release 22.11.1 HOT 1
- Start a Client without blocking HOT 4
- Undefined behavior for using WAMP features not agreed during feature negotiation HOT 9
- Adjust CI to deploy wheels to PyPI HOT 4
- RTD build for latest broken HOT 1
- 'Distribution' object has no attribute 'convert_2to3_doctests' HOT 1
- Save the chat results to the database
- Bad error handling in the autobahn_autoreconnect file
- connection lost while called for Twisted, bug-like issue HOT 8
- For version greater than `19.3.3`, autobahn is not able to run in background thread
- Autobahn and pyInstaller not compatible anymore HOT 9
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 autobahn-python.