ning2510

Results issues of ning2510

[问题所在](https://github.com/qinguoyi/TinyWebServer/blob/master/http/http_conn.cpp#L561) 这里减的是 `m_iv[0].iov_len - bytes_have_send`,应该是 `m_write_idx - bytes_have_send`,说一下原因: - 如果第一个 `iovec` 的头部信息数据长度需要多次使用 `writev` 才能发送完的话,那么 `m_iv[0].iov_len` 就会重复减去相同的值 - 举个例子:假设第一个 `iovec` 的头部信息数据长度为 90,每次 `writev` 发送的长度为 30。第一次调用 `writev` 后 `m_iv[0].iov_len = m_iv[0].iov_len -...

### 1. 添加 `CMakeLists.txt` 添加 cmake,解决 #64 ,需把 `main.c` 改为 `main.cpp` ### 2. 修改逻辑问题 [问题所在](https://github.com/qinguoyi/TinyWebServer/blob/raw_version/http/http_conn.cpp#L575) 这里减的是 `m_iv[0].iov_len - bytes_have_send`,应该是 `m_write_idx - bytes_have_send`,说一下原因: - 如果第一个 `iovec` 的头部信息数据长度需要多次使用 `writev` 才能发送完的话,那么 `m_iv[0].iov_len` 就会重复减去相同的值...

[问题所在](https://github.com/qinguoyi/TinyWebServer/blob/codeRefactorCGI_version/http/http_conn.cpp#L755) 这里减的是 `m_iv[0].iov_len - bytes_have_send`,应该是 `m_write_idx - bytes_have_send`,说一下原因: - 如果第一个 `iovec` 的头部信息数据长度需要多次使用 `writev` 才能发送完的话,那么 `m_iv[0].iov_len` 就会重复减去相同的值 - 举个例子:假设第一个 `iovec` 的头部信息数据长度为 90,每次 `writev` 发送的长度为 30。第一次调用 `writev` 后 `m_iv[0].iov_len = m_iv[0].iov_len -...

请问后续是否会支持全局自适应算法? 个人理解如果扩展为全局自适应限流,现有的策略可能会在特殊场景出现过度保护的问题。 算法公式:max_concurrency = max_qps * ((2+alpha) * min_latency - latency) 可以发现该算法是基于RT来调整max_concurrency。 假如下游有多种不同的接口,一部分接口(20%)的处理时间较短,一部分接口(80%)的处理时间较多。这就会发生min_latency下降的同时,latency在上升,进而导致max_concurrency下降,出现过度保护的情况。 针对这种情况,netflix中也明确提到在vegas和gradient方法中都可能会出现过度保护的情况,但是提出的gradient2貌似并没有彻底解决,只是缓解RT对max_concurrency的影响。 请问针对于这种场景是否有更好的建议或方法?

### I agree and want to create new issue - [x] I have already viewed [Hexo Docs page](https://hexo.io/docs/), especially [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html). - [x] I have already viewed...

Duplicate

Hi, I try to read the STL file and then do boolean operations, but it fails. I made a modification on CSGBollean.cpp and below is my code to read STL:...