From 350a57f858567a2ef85d40f63a7a2cc196eb1446 Mon Sep 17 00:00:00 2001 From: hhm Date: Wed, 2 Jul 2014 07:41:43 -0400 Subject: [PATCH] B"H view1090: do not block - do not block on network data --- view1090.c | 1 + 1 file changed, 1 insertion(+) diff --git a/view1090.c b/view1090.c index 59498be..2dbd323 100644 --- a/view1090.c +++ b/view1090.c @@ -122,6 +122,7 @@ int setupConnection(struct client *c) { // Try to connect to the selected ip address and port. We only support *ONE* input connection which we initiate.here. if ((fd = anetTcpConnect(Modes.aneterr, View1090.net_input_beast_ipaddr, Modes.net_input_beast_port)) != ANET_ERR) { + anetNonBlock(Modes.aneterr, fd); // // Setup a service callback client structure for a beast binary input (from dump1090) // This is a bit dodgy under Windows. The fd parameter is a handle to the internet