MonkeyDLufy

Results 5 issues of MonkeyDLufy

### Description As a user, I want to limits the rate of response transmission to a client, so that I can protect my bandwidth.

enhancement

### Description As a tcp server user, I want to use apisix for proxy tcp servers. So I need the stream upstream can support active health check. But I try...

feature-request

I've observed that the code uses data[index:] for regular expression matching on each occasion. When dealing with a very large Nginx configuration file, for instance, one with tens of thousands...

将http_upstream的tcp探针的need_keepalive关闭。否则当网络突然中断的时候,会导致server无法按预期熔断

复现方法: 1. 为了稳定模拟,需要把woker数量改成1; 2. 在http块下的upstream里,配置探测方式为tcp方式; 3. 开启tcpdump截包观察,在建链完成后,会有一段比较长的时间等待对方断链,在对方断链之前,在对方机器上通过iptables模拟断网,drop掉双向报文,这时候就会发现业务已经不通了,但是upstream的主动探测会永远正常,不会熔断。 修复建议: 将tcp的探测方式的need_keepalive关闭。 这样在主动探测后会主动断链。 `static ngx_check_conf_t ngx_check_types[] = { { NGX_HTTP_CHECK_TCP, ngx_string("tcp"), ngx_null_string, 0, ngx_http_upstream_check_peek_handler, ngx_http_upstream_check_peek_handler, NULL, NULL, NULL, 0, 1 }, #需要将这里改成0,关闭need_keepalive`