| 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 | { |
no test coverage detected