| 660 | } |
| 661 | |
| 662 | void 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 | |
| 669 | void Stop() { |
| 670 | g_running = false; |
nothing calls this directly
no outgoing calls
no test coverage detected