GUAC-1389: Document RDP frame start timeout.
This commit is contained in:
parent
fc5ad6c9cd
commit
d4d2fe06d9
@ -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.
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user