Networking (Linux): shutdown before recv

This commit is contained in:
李通洲
2026-03-26 14:47:33 +08:00
parent c69a6b7640
commit 62c2eb4d96
+6
View File
@@ -417,6 +417,12 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
}
#endif
if (shutdown(state->sockfd, SHUT_WR) == -1)
{
FF_DEBUG("Failed to shutdown socket send: %s (errno=%d)", strerror(errno), errno);
// Not a critical error, continue anyway
}
FF_DEBUG("Starting data reception");
FF_MAYBE_UNUSED int recvCount = 0;
uint32_t contentLength = 0;