- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance) - Fixed double free in timeout_heap_pop() when handling deleted elements - Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation - Added debug logging to timeout_heap_pop() for better error tracking Test results: test_etcp_simple_traffic now passes without double free errors
20 lines
369 B
C
Executable File
20 lines
369 B
C
Executable File
// etcp_loadbalancer.h - Load Balancer for ETCP Channels
|
|
#ifndef ETCP_LOADBALANCER_H
|
|
#define ETCP_LOADBALANCER_H
|
|
|
|
#include "etcp.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Functions
|
|
struct ETCP_LINK* etcp_loadbalancer_select_link(struct ETCP_CONN* etcp);
|
|
|
|
// Add more as needed (e.g., update bandwidth)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // ETCP_LOADBALANCER_H
|