Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit e887e74

Browse files
committed
Added CONFIG_ASYNC_TCP_MAX_ACK_TIME
1 parent 130ae3d commit e887e74

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/AsyncTCP.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ extern "C" {
6565

6666
class AsyncClient;
6767

68-
#define ASYNC_MAX_ACK_TIME 5000
68+
#ifndef CONFIG_ASYNC_TCP_MAX_ACK_TIME
69+
#define CONFIG_ASYNC_TCP_MAX_ACK_TIME 5000
70+
#endif
71+
#ifndef ASYNC_MAX_ACK_TIME
72+
#define ASYNC_MAX_ACK_TIME CONFIG_ASYNC_TCP_MAX_ACK_TIME
73+
#endif
6974
#define ASYNC_WRITE_FLAG_COPY 0x01 //will allocate new buffer to hold the data while sending (else will hold reference to the data given)
7075
#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.
7176
#define SSL_HANDSHAKE_TIMEOUT 5000 // timeout to complete SSL handshake

0 commit comments

Comments
 (0)