Skip to content

Commit 0db6ef0

Browse files
author
whitequark
committedJun 20, 2016
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.
1 parent f5deafb commit 0db6ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎artiq/runtime/liblwip/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ a lot of data that needs to be copied, this should be set high. */
105105

106106
/* ---------- TCP options ---------- */
107107
#define LWIP_TCP 1
108-
#define LWIP_TCP_KEEPALIVE 1
108+
#define LWIP_TCP_KEEPALIVE 0
109109
#define TCP_KEEPIDLE_DEFAULT 1250
110110
#define TCP_KEEPINTVL_DEFAULT 1000
111111
#define TCP_KEEPCNT_DEFAULT 3

4 commit comments

Comments
 (4)

sbourdeauducq commented on Jun 21, 2016

@sbourdeauducq
Member

Did you try a newer lwip?

whitequark commented on Jun 21, 2016

@whitequark
Contributor

No. Should I?

sbourdeauducq commented on Jun 21, 2016

@sbourdeauducq
Member

Yes. We need keepalive so this is not a solution.

whitequark commented on Jun 21, 2016

@whitequark
Contributor

OK.

Please sign in to comment.