-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asynchronous remote server #20
Comments
Sounds good to me. I don't have too much experience from asynchronous servers nor time to look at this in the foreseeable future, though. Anyone interested to create a PR? |
I tested using
|
It seems that the thread safety problem could be fixed by using slightly modified version of the answers to this SO question: |
Added ThreadingMixIn at some point when testing different approaches to run server on background. It would add async support which would be awesome, but unfortunately it doesn't work well with the current system so intercept stdout/stderr. See issue #20 that requests this async support for more information about the problems. The issue also contains a potential solution, but it is too big task for 1.1 release.
Hi @pekkaklarck ...! To overcome the thread safety problem, I implemented a mechanism in the robotframework library, where I keep track of stdout and stderr of each and every thread. Also, I created separate output and logger objects, so that a single process can produce multiple output logs [and] reports in the same time, when multiple invocations come from different threads. This also includes an implementation, where I authenticate the callee using IP I can give a try to port that implementation to the latest robotframework library and PythonRemoteServer, if you are still interested..! Best Regards 😃 |
Hi @mohan-barathi This sounds really interesting to me! Your comment dates a few years, are you by any chance still able to give it a try? If not, can you briefly lay out your thoughts about authentication? |
Hello! I've made a (very) simple alternative remote library implementation with async support via aiohttp and aiohttp_xmlrpc: https://github.com/SX91/aioroboremote It's using the same stream interception approach, thus it's not multiclient safe. |
Hi,
it is possible to create asynchronous remote server? Using SocketServer.ThreadingMixIn or any other possible way?
It would be nice to have server that can accept more than one command in one time. It would definitely lowers the time to run keywords (eg. vmware connector to work with more than one machine at the time)
The text was updated successfully, but these errors were encountered: