#85 连接层与HTTP解析层Warning已消除。
This commit is contained in:
@@ -192,6 +192,8 @@ int hf_content_compress_write(struct hf_content_compress * cv_object,
|
||||
} while (z->avail_in > 0);
|
||||
|
||||
assert(end == 0 || ret == Z_STREAM_END);
|
||||
|
||||
(void)ret;
|
||||
return evbuffer_commit_space(out_ev_buf, v, iov_count);
|
||||
}
|
||||
|
||||
|
||||
@@ -195,7 +195,6 @@ static int __write_http_half_to_line(const struct tfe_stream * stream,
|
||||
static int __on_request_handle_user_req_or_resp(const tfe_stream * stream, struct http_session_private * hs_private,
|
||||
struct http_half_private * hf_private_req_in, bool & need_to_close_the_session)
|
||||
{
|
||||
struct http_connection_private * hc_private = hs_private->hc_private;
|
||||
int ret = 0;
|
||||
|
||||
/* Cannot setup user request and user response simultaneously */
|
||||
|
||||
@@ -890,8 +890,6 @@ void hs_ops_drop(struct tfe_http_session * session)
|
||||
void hs_ops_suspend(struct tfe_http_session * session)
|
||||
{
|
||||
struct http_session_private * hs_private = to_hs_private(session);
|
||||
struct http_connection_private * hc_private = hs_private->hc_private;
|
||||
|
||||
hs_private->suspend_tag_signal = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,6 +242,7 @@ protected:
|
||||
{
|
||||
auto * __uncompress_buf = static_cast<std::vector<char> *>(user);
|
||||
__uncompress_buf->insert(__uncompress_buf->end(), data, data + len);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user