|
手工编写的下载文件脚本,在局域网内单个脚本运行,发现下载速度越来越小,从最开始的5MB/S,降到200KB/S,请教原因,谢谢
测试脚本见下:
Action()
{
web_set_max_html_param_len("9000000");
web_reg_save_param("text","LB=","RB=","search=body",LAST);
//web_set_sockets_option("OVERLAPPED_SEND", "0");
lr_start_transaction("DownloadFile-5M");
web_custom_request("DownloadFile",
"URL=http://192.168.0.9:9005/service/test.3001/download",
"Method=get",
"RecContentType=application/octet-stream",
"EncType=text/plain; charset=utf-8",
LAST);
iflen = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
if(iflen>7000){
lr_end_transaction("DownloadFile-5M",LR_PASS);
}else{
lr_end_transaction("DownloadFile-5M",LR_FAIL);
//lr_error_message("%s",lr_eval_string("{text}"));
}
return 0;
} |
|