Stefan Schuermans commited on 2016-11-20 11:57:25
Showing 1 changed files, with 1 additions and 1 deletions.
avoid stalling socket output operation in case some distributor is not reachable -> rather drop packets this is necessary due to the non-optimal decoupling of displayer thread from main thread (big lock held for a long time)
... | ... |
@@ -78,7 +78,7 @@ flp_display_t *flp_display_create(const char *sz_config_file, |
78 | 78 |
/* set up UDP socket */ |
79 | 79 |
|
80 | 80 |
/* create socket */ |
81 |
- p_display->sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); |
|
81 |
+ p_display->sock = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); |
|
82 | 82 |
if (!flp_sock_is_valid(p_display->sock)) { |
83 | 83 |
flp_display_free(p_display); |
84 | 84 |
if (p_msg_func) { |
85 | 85 |