MCPcopy Create free account
hub / github.com/defold/defold / HasRequestTimedOut

Function HasRequestTimedOut

engine/dlib/src/dlib/http_client.cpp:374–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 }
373
374 static bool HasRequestTimedOut(HClient client)
375 {
376 if (client->m_CancelFlag && *client->m_CancelFlag)
377 return true;
378 if( client->m_RequestTimeout == 0 )
379 return false;
380 uint64_t currenttime = dmTime::GetMonotonicTime();
381 return int(currenttime - client->m_RequestStart) >= client->m_RequestTimeout;
382 }
383
384 static dmSocket::Result SendAll(Response* response, const char* buffer, int length)
385 {

Callers 6

SendAllFunction · 0.85
RecvAndParseHeadersFunction · 0.85
DoTransferFunction · 0.85
HandleResponseFunction · 0.85
DoRequestFunction · 0.85
GetFunction · 0.85

Calls 1

GetMonotonicTimeFunction · 0.70

Tested by

no test coverage detected