Comments (1)
try the following:
>>> from nmoscommon.mdns import MDNSEngine
>>> import gevent
>>> mdns = MDNSEngine()
>>> mdns.start()
>>> gevent.sleep(0)
>>> mdns.stop()
>>>
This is a gotcha with using gevent based libraries from the command prompt: you need to explicitly yield control to allow other greenlets (threads, essentially) an opportunity to run. gevent.sleep(0) does this by sleeping for 0 seconds.
from nmos-common.
Related Issues (17)
- Missing Debian dependency
- Dateutil version capped at <2.8.1
- Dependencies missing unless version is incremented HOT 6
- test_json throwing errors HOT 1
- Negative timestamps/offsets sometimes returned as positive in strings HOT 1
- Pure python logger outputs to stderr twice HOT 1
- License does not appear correctly via GitHub UI
- Default IPC proxy timeout is too small in facade.py HOT 1
- Jenkins tests fail because of missing systemd dependency
- Python 3 test dependencies not installed by default HOT 3
- Aggregator.py fails to set Content-Type header in interactions with Registration API
- oauth dependency version conflict
- Potential unhandled exception in dnsUtils
- .local hostnames don't always resolve
- Update ProxyFix to work with Werkzeug 0.15
- API constructor failure not signalled in HTTPServer start HOT 1
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 nmos-common.