summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend/backend_proxy.py
AgeCommit message (Collapse)Author
2015-06-22[feat] replace old log handler with new oneIvan Alejandro
Replace logging.getLogger with custom get_logger. Remove some unneeded dependencies and reorder other.
2015-05-08[feat] use txzmq in backenddrebs
Before this commit, the backend used plain pyzmq bindings for communicating with the frontend. This implements the txzmq twisted-powered bindings instead. Closes: #6360
2015-03-09Merge branch 'release/0.8.x' into developIvan Alejandro
2015-02-23Use unix sockets for the fallback, and set permissionsKali Kaneko
... on them, to user-writeable only. I think we could consider ipc for the curve-case too, at least for the platforms that support them.
2015-02-20Fall back to plain ZMQ if Curve is not available.Ivan Alejandro
Use global flag for ZMQ_HAS_CURVE. Closes #6646
2015-02-13enable --offline mode for email againKali Kaneko
2014-12-29Create the certificates if they don't exist.Ivan Alejandro
Fix typo for signal disconnection. The backend is the one who always creates the certificates. Either if it is run separately or in a process in the same app as the frontend.
2014-12-19Allow frontend and backend to be run separately.Ivan Alejandro
Add the 'check_online' method to check whether the backend is accessible or not. Reduce the wait for running threads timeout on quit. Add retry feature to the backend requests send.
2014-08-01Add cancel button for EIP connection.kali
Closes: #4035 This falls in the "quick" workaround category. A proper state machine that extends the four basic connection states is hence needed. We have to accomodate design to have a connection-oriented state machine in the backend (I would favor a twisted protocol for this), and a more lightweight one that conducts the gui-level changes (ie, change the actions / buttons / labels accordingly). Since this "cancel" functionality has been long postponed, I chose to do one more ugly hack here, that is, show and hide dance with a button that just calls the bitmask-root to kill the vpn process. It should work well enough until we get to the reorganization needed for a clean process control for eip.
2014-07-21Add heartbeat to check if backend is alive.Ivan Alejandro
Send a 'ping' request every 2 secs to ensure that the backend is running. Use polling instead of recv on the backend_proxy. This was already implemented for the signaler.
2014-07-14Comment out overly verbose logs for communication.Ivan Alejandro
2014-07-14Add file docstrings.Ivan Alejandro
2014-07-14Add license headers.Ivan Alejandro
2014-07-14Add base communication framework.Ivan Alejandro