TCP Timeout

Veeda
Posts: 8
Joined: Mon Jul 06, 2015 2:02 am

TCP Timeout

Postby Veeda » Mon Aug 10, 2015 11:44 pm

I have two ESP's one set as AP with TCP server and another ESP as STA. The STA connects to AP and establishes TCP connection. After sending few thousand bytes ~10KB-20KB the connection times out and the STA has to establish TCP connection again.

Is there anyway to stop the ESP STA from timing out and keep the connection alive through out the whole transmission? (Note: I am constantly sending packets so the connection is always being used)
Last edited by Veeda on Tue Aug 11, 2015 3:15 am, edited 1 time in total.

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Re: TCP Timeout

Postby kolban » Tue Aug 11, 2015 12:33 am

Howdy,
The default idle timeout on a TCP connection is about 10 seconds. The SDK has a function called "espconn_regist_time" which allows you to override this default. The maximum idle allowable duration of a TCP connection is 2 hours.

Neil

Veeda
Posts: 8
Joined: Mon Jul 06, 2015 2:02 am

Re: TCP Timeout

Postby Veeda » Tue Aug 11, 2015 4:57 am

Thank you Neil!

Who is online

Users browsing this forum: No registered users and 63 guests