MCPcopy Create free account
hub / github.com/apache/httpd / timeout_msec

Function timeout_msec

modules/md/md_curl.c:183–187  ·  view source on GitHub ↗

Convert timeout values for curl. Since curl uses 0 to disable * timeout, return at least 1 if the apr_time_t value is non-zero. */

Source from the content-addressed store, hash-verified

181/* Convert timeout values for curl. Since curl uses 0 to disable
182 * timeout, return at least 1 if the apr_time_t value is non-zero. */
183static long timeout_msec(apr_time_t timeout)
184{
185 long ms = (long)apr_time_as_msec(timeout);
186 return ms? ms : (timeout? 1 : 0);
187}
188
189static long timeout_sec(apr_time_t timeout)
190{

Callers 1

internals_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected