fixed tcp_client_manager buffer memory management