大文件流式缓存联调通过。UNDEFINE类型100KB以上进行缓存。
This commit is contained in:
@@ -87,7 +87,7 @@ static int __write_http_half_to_line(const struct tfe_stream * stream,
|
||||
* and has been call body_begin, construct the header */
|
||||
if (hf_private->evbuf_body != NULL && hf_private->write_ctx == NULL)
|
||||
{
|
||||
printf("frag write start, stream = %p, hf_private = %p\n", stream, hf_private);
|
||||
// printf("frag write start, stream = %p, hf_private = %p\n", stream, hf_private);
|
||||
|
||||
/* Still need to send data(not call body_end()), need to write frag start
|
||||
* Otherwise, means the body is ready, send out directly without frag */
|
||||
|
||||
@@ -657,7 +657,7 @@ int hf_ops_body_end(struct tfe_http_half * half)
|
||||
hf_private->body_status = STATUS_COMPLETE;
|
||||
hf_private->message_status = STATUS_COMPLETE;
|
||||
|
||||
printf("frag write end, stream = %p, hf_private = %p\n", hf_private->session->hc_private->stream, hf_private);
|
||||
// printf("frag write end, stream = %p, hf_private = %p\n", hf_private->session->hc_private->stream, hf_private);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user