GUAC-1389: Document RDP frame start timeout.

This commit is contained in:
Michael Jumper 2016-03-07 21:12:53 -08:00
parent fc5ad6c9cd
commit d4d2fe06d9
2 changed files with 11 additions and 1 deletions

View File

@ -39,6 +39,15 @@
*/
#define GUAC_RDP_FRAME_TIMEOUT 10
/**
* The amount of time to wait for a new message from the RDP server when
* beginning a new frame. This value must be kept reasonably small such that
* a slow RDP server will not prevent external events from being handled (such
* as the stop signal from guac_client_stop()), but large enough that the
* message handling loop does not eat up CPU spinning.
*/
#define GUAC_RDP_FRAME_START_TIMEOUT 250000
/**
* The native resolution of most RDP connections. As Windows and other systems
* rely heavily on forced 96 DPI, we must assume 96 DPI.

View File

@ -843,7 +843,8 @@ void* guac_rdp_client_thread(void* data) {
#endif
/* Wait for data and construct a reasonable frame */
int wait_result = rdp_guac_client_wait_for_messages(client, 250000);
int wait_result = rdp_guac_client_wait_for_messages(client,
GUAC_RDP_FRAME_START_TIMEOUT);
guac_timestamp frame_start = guac_timestamp_current();
while (wait_result > 0) {