File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ set (COMPONENT_SRCDIRS
2
+ "src"
3
+ )
4
+
5
+ set (COMPONENT_ADD_INCLUDEDIRS
6
+ "src"
7
+ )
8
+
9
+ set (COMPONENT_REQUIRES
10
+ "arduino-esp32"
11
+ )
12
+
13
+ register_component ()
14
+
15
+ target_compile_options (${COMPONENT_TARGET} PRIVATE -fno-rtti )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ typedef struct {
78
78
79
79
static xQueueHandle _async_queue;
80
80
static TaskHandle_t _async_service_task_handle = NULL ;
81
- const int _number_of_closed_slots = 16 ;
81
+ const int _number_of_closed_slots = CONFIG_LWIP_MAX_ACTIVE_TCP ;
82
82
static int _closed_index = 0 ;
83
83
static int _closed_slots[_number_of_closed_slots];
84
84
@@ -1278,7 +1278,9 @@ void AsyncServer::end(){
1278
1278
if (_pcb){
1279
1279
tcp_arg (_pcb, NULL );
1280
1280
tcp_accept (_pcb, NULL );
1281
- _tcp_abort (_pcb, -1 );
1281
+ if (tcp_close (_pcb) != ERR_OK){
1282
+ _tcp_abort (_pcb, -1 );
1283
+ }
1282
1284
_pcb = NULL ;
1283
1285
}
1284
1286
}
You can’t perform that action at this time.
0 commit comments