修正suspend/resume语义实现的若干问题,增加自行构建request/response的header标志

This commit is contained in:
Lu Qiuwen
2018-10-26 20:30:06 +08:00
parent d3d34355ef
commit cf64f01f7f
9 changed files with 104 additions and 35 deletions

View File

@@ -348,7 +348,7 @@ void __http_post_header_verify_helper(struct http_half_private * hf_private)
}
struct __post_http_req_ctx
{
{
unsigned int calling_seq{0};
size_t total_length{0};
@@ -1488,6 +1488,11 @@ void tfe_stream_resume(const struct tfe_stream * stream)
return;
}
void tfe_stream_suspend(const struct tfe_stream * stream, enum tfe_conn_dir by)
{
return;
}
int tfe_stream_write_frag(struct tfe_stream_write_ctx * w_ctx, const unsigned char * data, size_t size)
{
return 0;
@@ -1498,6 +1503,11 @@ void tfe_stream_write_frag_end(struct tfe_stream_write_ctx * w_ctx)
return;
}
const char * tfe_version()
{
return NULL;
}
int main(int argc, char ** argv)
{
::testing::InitGoogleTest(&argc, argv);