mirror of
https://github.com/lxsang/ant-http
synced 2024-12-25 16:28:21 +01:00
fix write
This commit is contained in:
parent
457eefee25
commit
348dd45385
@ -299,10 +299,9 @@ int antd_send(void *src, const void* data, int len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
if(written == 0)
|
if(written == 0)
|
||||||
written = count;
|
written = count;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//source->attempt = 0;
|
//source->attempt = 0;
|
||||||
@ -436,7 +435,7 @@ int antd_recv(void *src, void* data, int len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(read ==0)
|
if(read = 0)
|
||||||
read = received;
|
read = received;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -226,8 +226,8 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba
|
|||||||
task->handle = handle;
|
task->handle = handle;
|
||||||
task->callback = callback_of(callback);
|
task->callback = callback_of(callback);
|
||||||
task->priority = NORMAL_PRIORITY;
|
task->priority = NORMAL_PRIORITY;
|
||||||
//task->type = HEAVY;
|
task->type = HEAVY;
|
||||||
task->type = LIGHT;
|
//task->type = LIGHT;
|
||||||
task->access_time = atime;
|
task->access_time = atime;
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user