CONFIG_ASYNC_TCP_MAX_ACK_TIME

This commit is contained in:
Mathieu Carbou
2024-04-27 12:20:28 +02:00
parent 9b5f04627f
commit 85988d5a44
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ AsyncClient::AsyncClient(tcp_pcb* pcb)
, _tx_last_packet(0)
, _rx_timeout(0)
, _rx_last_ack(0)
, _ack_timeout(ASYNC_MAX_ACK_TIME)
, _ack_timeout(CONFIG_ASYNC_TCP_MAX_ACK_TIME)
, _connect_port(0)
, prev(NULL)
, next(NULL)
+4 -1
View File
@@ -69,9 +69,12 @@ extern "C" {
#define CONFIG_ASYNC_TCP_QUEUE_SIZE 64
#endif
#ifndef CONFIG_ASYNC_TCP_MAX_ACK_TIME
#define CONFIG_ASYNC_TCP_MAX_ACK_TIME 5000
#endif
class AsyncClient;
#define ASYNC_MAX_ACK_TIME 5000
#define ASYNC_WRITE_FLAG_COPY 0x01 //will allocate new buffer to hold the data while sending (else will hold reference to the data given)
#define ASYNC_WRITE_FLAG_MORE 0x02 //will not send PSH flag, meaning that there should be more data to be sent before the application should react.