Use TCP instead of UNIX sockets (first try)
Initial 'implementation' of vncauthproxy using TCP sockets instead ofUNIX domain sockets for control connections.
By default, it will bind to 127.0.0.1:24999 (forwarding ports start atTCP 25000). The client was changed accordingly....
Make control connection handling async
For every incoming control connection, accept() inside the main loop anddispatch the connection handling/establishment to a new greenlet.
The async handling of the control connections ensures that vncauhtproxy won't...
Modify default port range for port pool
The default port range used for automatic port selectionwas chosen to be the ephemeral port range. This was the wrongthing to do, because it may conflict with ports used for outgoingconnections from the host on which vncauthproxy runs,...
Fix possible race in returning source port to pool
First make sure all sockets for a connection are closed,then return the source port number to the port pool.
This fixes a possible race where the greenlet gets preempted right afterreturning a port to the pool, and the port is picked up from the pool by...
Improve cleanup of worker greenlets
There are two worker greenlets per direction of an establishedconnection. This patch improves the way they are cleaned upby the main connection greenlet.
The workers are no longer linked together. This removes the hideous...
Fix a few more instances of logging
Fix a few more instances of logging, per pylint W6501,after commit c87d99e96.
Use gevent.sleep instead of time.sleep
Use green version of sleep() from gevent,so other greenlets get to run while a specific greenlet sleeps.
Make logging more consistent
Generate all logging-specific function members of VncAuthProxy("info", "error", etc) dynamically, from a single template.
Pass arguments to format string separately, as per pylint W6501,PEP282.
Fix minor typo
Be more verbose when waiting for client to connect
View revisions
Also available in: Atom