From 0db6ef0e1ca32068ffd17e1fada770c7a30d2e86 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 20 Jun 2016 18:55:17 +0000 Subject: [PATCH] runtime: disable lwip TCP keepalive. This sometimes results in an RST sent by lwip after a retransmission, although it is not clear exactly why. See #456. --- artiq/runtime/liblwip/lwipopts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/runtime/liblwip/lwipopts.h b/artiq/runtime/liblwip/lwipopts.h index 1dc945e96..d53f76785 100644 --- a/artiq/runtime/liblwip/lwipopts.h +++ b/artiq/runtime/liblwip/lwipopts.h @@ -105,7 +105,7 @@ a lot of data that needs to be copied, this should be set high. */ /* ---------- TCP options ---------- */ #define LWIP_TCP 1 -#define LWIP_TCP_KEEPALIVE 1 +#define LWIP_TCP_KEEPALIVE 0 #define TCP_KEEPIDLE_DEFAULT 1250 #define TCP_KEEPINTVL_DEFAULT 1000 #define TCP_KEEPCNT_DEFAULT 3