Lines Matching refs:data
33 void Curl_speedinit(struct Curl_easy *data) in Curl_speedinit() argument
35 memset(&data->state.keeps_speed, 0, sizeof(struct curltime)); in Curl_speedinit()
41 CURLcode Curl_speedcheck(struct Curl_easy *data, in Curl_speedcheck() argument
44 if(data->req.keepon & KEEP_RECV_PAUSE) in Curl_speedcheck()
48 if((data->progress.current_speed >= 0) && data->set.low_speed_time) { in Curl_speedcheck()
49 if(data->progress.current_speed < data->set.low_speed_limit) { in Curl_speedcheck()
50 if(!data->state.keeps_speed.tv_sec) in Curl_speedcheck()
52 data->state.keeps_speed = now; in Curl_speedcheck()
55 timediff_t howlong = Curl_timediff(now, data->state.keeps_speed); in Curl_speedcheck()
57 if(howlong >= data->set.low_speed_time * 1000) { in Curl_speedcheck()
59 failf(data, in Curl_speedcheck()
62 data->set.low_speed_limit, in Curl_speedcheck()
63 data->set.low_speed_time); in Curl_speedcheck()
70 data->state.keeps_speed.tv_sec = 0; in Curl_speedcheck()
73 if(data->set.low_speed_limit) in Curl_speedcheck()
76 Curl_expire(data, 1000, EXPIRE_SPEEDCHECK); in Curl_speedcheck()