Chen Yaqi
Chen Yaqi
> Given that BPF host routing was auto-enabled via the kubeProxyReplacement=strict flag, maybe we need to come up with a way to avoid configuring bpf host routing whenever Cilium is...
能否贴上你的运行环境以及测试结果?
HTTP头部解析是用状态机,解析到每一个位置都有对应的状态,可以参见[`parse_request_line`的实现](https://github.com/chendotjs/lotos/blob/3eb36cc3723a1dc9bb737505f0c8a3538ee16347/src/http_parser.c#L31)。 request line的解析包含了[ `S_RL_BEGIN、S_RL_SP_BEFORE_URL、S_RL_URL`等状态](https://github.com/chendotjs/lotos/blob/3eb36cc3723a1dc9bb737505f0c8a3538ee16347/src/http_parser.h#L84)。用gdb单步跟踪应该很容易明白 😉 至于epoll惊群,我这里取巧用了`SO_REUSEPORT`参数,每个子进程都创建了自己的`listen_fd`并且`epoll_wait`在该`listen_fd`等待新连接的到来,系统内核帮我们做了负载均衡并且不会造成惊群。如果想知道如何解决一般性的惊群问题,可以参考nginx的实现方式,每个时刻只有一个进程监听新连接。
> 求再手机上进行一次性设置,现在每打开一个视频,都需要重新设置,较麻烦。感谢作者,只是我用的最好的双字幕,其他的都有翻译的不通顺的! 同求,每次打开视频需要点扩展很麻烦
hey shawn, the redis client currently used is . The document says: > client will emit error when encountering an error connecting to the Redis server or when any other...