Skip to content

Commit

Permalink
fix: rpc server
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <thxcode0824@gmail.com>
  • Loading branch information
thxCode committed Aug 29, 2024
1 parent 7182c8a commit d1f5767
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llama-box/rpcserver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ static void rpcserver_serve(ggml_backend_t bkd, int32_t idx, size_t cap, rpc_soc
output.clear();
input.clear();
}
close(sockfd);
}

// RPC server entry point
Expand Down Expand Up @@ -801,7 +800,6 @@ static int rpcserver_start(const rpcserver_params &params) {
int ret = setsockopt(cli_socketfd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int));
if (ret != 0) {
LOG_ERROR("failed to set client socket TCP_NODELAY", {});
close(cli_socketfd);
continue;
}

Expand All @@ -819,7 +817,6 @@ static int rpcserver_start(const rpcserver_params &params) {
} catch (const std::system_error &e) {
LOG_ERROR("failed to process client connection",
{{"ip", cli_ip}, {"port", cli_port}, {"error", e.what()}});
close(cli_socketfd);
}
}
#ifdef _WIN32
Expand Down

0 comments on commit d1f5767

Please sign in to comment.