projects
/
libguac-client-rdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af07170
)
added timeout to select waiting on FreeRDP
author
Matt Hortman <matt@FlintRiverSystems.com>
Tue, 28 Feb 2012 20:25:59 +0000
(15:25 -0500)
committer
Matt Hortman <matt@FlintRiverSystems.com>
Tue, 28 Feb 2012 20:39:19 +0000
(15:39 -0500)
src/guac_handlers.c
patch
|
blob
|
history
diff --git
a/src/guac_handlers.c
b/src/guac_handlers.c
index
2d1bc20
..
ef8e101
100644
(file)
--- a/
src/guac_handlers.c
+++ b/
src/guac_handlers.c
@@
-116,7
+116,10
@@
int rdp_guac_client_handle_messages(guac_client* client) {
}
/* Otherwise, wait for file descriptors given */
- if (select(max_fd + 1, &rfds, &wfds, NULL, NULL) == -1) {
+ struct timeval timeout;
+ timeout.tv_sec = 0;
+ timeout.tv_usec = 250000;
+ if (select(max_fd + 1, &rfds, &wfds, NULL, &timeout) == -1) {
/* these are not really errors */
if (!((errno == EAGAIN) ||
(errno == EWOULDBLOCK) ||