X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fwwwd.c;h=f9b49fa86fcef631eb9c3c2821cba1841111b3c2;hp=5d22a875b5ddaada1024fb6cb25b900ef5172972;hb=43863d64be274fa4adfa5db745120aedb5f421c9;hpb=59b7972859381eba8053e7aa796ae6e6e21bf44c diff --git a/sources/wwwd.c b/sources/wwwd.c index 5d22a87..f9b49fa 100644 --- a/sources/wwwd.c +++ b/sources/wwwd.c @@ -282,7 +282,6 @@ void ServPage(int sockfd) j = 0; while (!feof(file)) { - printf("Loop %d\n", j++); if ( (nleft = full_fread(file, outbuf, 1024)) != 0) { if (ferror(file)) { fprintf(sock, "HTTP/1.0 %s\n", codes[3]); @@ -292,7 +291,6 @@ void ServPage(int sockfd) return; } } - printf("Loop %d rimasti %d\n", j, nleft); if (full_fwrite(sock, outbuf, 1024-nleft) != 0) { if (ferror(file)) { fprintf(sock, "HTTP/1.0 %s\n", codes[3]); @@ -303,8 +301,6 @@ void ServPage(int sockfd) } } } - printf("Ok fin qui!"); -// line = fgets(buffer, MAXLINE, sock); fclose(file); fclose(sock); return;