62 easy->progress.current_speed = speed;
69 }
while(counter < 100);
71 finaltime = (int)(now.
tv_sec - 1);
78 "wrong low speed timeout");
80 "wrong low speed timeout");
82 "wrong log speed timeout");
84 "wrong log speed timeout");
86 "should not time out");
static void unit_stop(void)
static CURLcode unit_setup(void)
UNITTEST_START int result
#define curl_easy_setopt(handle, option, value)
static int counter[MAX_EASY_HANDLES]
CURL_EXTERN CURL * curl_easy_init(void)
CURL_EXTERN void curl_easy_cleanup(CURL *curl)
CURL_TYPEOF_CURL_OFF_T curl_off_t
void Curl_speedinit(struct Curl_easy *data)
CURLcode Curl_speedcheck(struct Curl_easy *data, struct curltime now)
UNITTEST_START fail_unless(runawhile(41, 41, 40, 0)==41,"wrong low speed timeout")
static int runawhile(long time_limit, long speed_limit, curl_off_t speed, int dec)
CURL_EXTERN void curl_global_cleanup(void)
curl_global_cleanup() globally cleanups curl, uses the value of "init_flags" to determine what needs ...