This bug was apparently fixed in 2.6 but not in 3.0.
It only affects Windows builds.
This brings Squid-3 cachemgr.cgi up to full Windows support parity with
Squid-2
}
}
- fclose(fp);
#ifdef _SQUID_MSWIN_
-
+ fclose(fp);
remove(tmpfile);
xfree(tmpfile);
+ closesocket(s);
+#else
close(s);
-
#endif
return 0;
req->hostname,
req->action,
make_auth_header(req));
+#ifdef _SQUID_MSWIN_
+ send(s, buf, l, 0);
+#else
write(s, buf, l);
+#endif
debug(1) fprintf(stderr, "wrote request: '%s'\n", buf);
return read_reply(s, req);
}