« Previous | Next » 

Revision 86d1202e

ID86d1202e2d40541b1d3086d384a6449259099171

Added by Stratos Psomadakis over 10 years ago

Make control connection handling async

For every incoming control connection, accept() inside the main loop and
dispatch the connection handling/establishment to a new greenlet.

The async handling of the control connections ensures that vncauhtproxy won't
hang again if the VNC server or client fail during the connection establishment
(handshake).

This commit also adds a larger (and configurable) backlog for the control
socket and a (configurable) timeout to the server socket, while doing the
handhsake.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences