MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / SetMaxUploadMB

Function SetMaxUploadMB

src/platform/linux/http_server.cpp:662–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662void SetMaxUploadMB(int mb) {
663 if (mb <= 0) return;
664 // Cast before multiplication to prevent signed overflow
665 g_maxUploadBytes.store(static_cast<uint64_t>(mb) * 1024ULL * 1024ULL, std::memory_order_relaxed);
666 LOG("[HttpServer] SetMaxUploadMB: %d MB", mb);
667}
668
669void Stop() {
670 g_running = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected