1.删除缓存测试无效代码
2.修改header链表结构为TQ 3,重构h2_half_ops_field_read,h2_half_ops_field_write等接口
This commit is contained in:
@@ -72,7 +72,7 @@ str_to_val_idx(const char *val, const struct value_string *vs)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char*
|
||||
@@ -257,7 +257,7 @@ int deflate_init(struct z_stream_st **strm, int gzip)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int defalta_br_write(struct z_stream_st **strm,
|
||||
int deflate_br_write(struct z_stream_st **strm,
|
||||
const unsigned char * source, size_t slen,
|
||||
struct evbuffer * evbuf, int end)
|
||||
{
|
||||
@@ -363,7 +363,7 @@ int deflate_write(struct z_stream_st **strm, const uint8_t *source,
|
||||
ret = defalta_gzip_write(strm, source, slen, evbuf, end);
|
||||
}
|
||||
if (gzip == HTTP2_CONTENT_ENCODING_BR){
|
||||
ret = defalta_br_write(strm, source, slen, evbuf, end);
|
||||
ret = deflate_br_write(strm, source, slen, evbuf, end);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user