Coder Social home page Coder Social logo

cache 插件存在 bug about mosdns HOT 7 CLOSED

irinesistiana avatar irinesistiana commented on May 24, 2024
cache 插件存在 bug

from mosdns.

Comments (7)

IrineSistiana avatar IrineSistiana commented on May 24, 2024

我在配置时推断了很久的地方在于:如何在 pipeline 路由中添加类似 sequence 路由里的条件判断。
如果希望缓存请求应答,那么看起来有必要将处理请求的全部环节都放在 pipeline 路由中。但是同时我希望做到对国内域名和国外域名分别请求,Wiki 里没有见到支持 if 这样的语法,所以我就尝试着把 sequence 路由放在 pipeline 路由里执行了。

没有任何问题。就是这样设计的。pipeline 里的 sequence 放在 pipe 里还是 next 都行。


退出是因为 cache 插件有 bug。

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

其实没必要拆开。如果想实现 cache 和 hosts,把它俩 放进 pipeline ,然后后面next 接原来的 sequence 就行。

from mosdns.

IceCodeNew avatar IceCodeNew commented on May 24, 2024

其实没必要拆开。如果想实现 cache 和 hosts,把它俩 放进 pipeline ,然后后面next 接原来的 sequence 就行。

好,谢谢建议~
// 等您老把 bug 修了我就试试

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

bug 是个变量名笔误,已经修了。但新版本那得等几天了。计划把插件类型整理整理,现在类型挺乱,调用方式也很迷。

from mosdns.

IceCodeNew avatar IceCodeNew commented on May 24, 2024

你说已经修了但我没看到提交记录啊 233333
我可以自己独立编译的,所以不算问题。

from mosdns.

vrichv avatar vrichv commented on May 24, 2024

上游全部使用doh之后,cache功能有非常迫切的需求。

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

上游全部使用doh之后,cache功能有非常迫切的需求。

@Richardxyz 还好吧,forward 的 doh 有连接复用的。就第一次请求要握手延时高点。然后就和udp一样低了。

from mosdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.