chore: fix infinite loop condition in http_fileserver.rc and add file server documentation

This commit is contained in:
2025-11-24 09:26:12 +00:00
parent acc2ac6088
commit 6be2eb28f0
3 changed files with 195 additions and 6 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ int main() {
printf("Example: http://localhost:8080/\n\n");
filename = "README.md";
count = 0;
while (count < 100) {
count = 1;
while (count > 0) {
printf("Waiting for connection %d\n", count + 1);
client_fd = accept(server_fd);