Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Server/mods/deathmatch/StdInc.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
#include <winsock2.h>
#include <windows.h>
#include <mmsystem.h>
#else
//
// Non-Windows: provide the Windows Sleep() spelling used throughout this
// module. This used to be supplied transitively by the EHS vendor headers
// (vendor/ehs/socket.h); now that EHS is gone we define it ourselves, matching
// the equivalent shim in Server/core/StdInc.h.
#include <unistd.h>
#ifndef Sleep
#define Sleep(duration) usleep((duration) * 1000)
#endif
#endif

#include <net/CSimControl.h>
Expand Down
5 changes: 5 additions & 0 deletions Server/mods/deathmatch/logic/CGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,11 @@ void CGame::DoPulse()
if (m_pHqComms)
m_pHqComms->Pulse();

// Periodic maintenance for the built-in HTTP server (login session and
// connection cache upkeep).
if (m_pHTTPD)
m_pHTTPD->HttpPulse();

CLOCK_CALL1(m_pFunctionUseLogger->Pulse(););
CLOCK_CALL1(m_lightsyncManager.DoPulse(););

Expand Down
Loading
Loading