V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chaleaochexist
V2EX  ›  程序员

请教一个 kong 有关的问题.

  •  
  •   chaleaochexist · 2022-10-24 17:29:17 +08:00 · 998 次点击
    这是一个创建于 549 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1. kong 启动几天之后, 会随机出现某一个 http 请求 pending. 永远 pending.
    2. 我们自定义了一些 plugin, 如果把这些插件关掉无法重现这个问题.
    3. 看起来和插件的代码无关, 因为不是某个插件会导致这个问题. 而且从 log 上看, 插件已经收到了请求,并且返回了正确的逻辑.
    4. 插件是用 go 写的.
    5. 因为 pending 的 http 请求是随机的. 所以也不是 upstream 的问题.

    感觉像是 kong 和 plugin 之间的通信问题.

    go-pdf 0.6.1 kong 是最新版本.

    试着问问.

    4 条回复    2024-03-29 13:57:32 +08:00
    JerAxxxx
        1
    JerAxxxx  
       2022-10-25 11:52:18 +08:00
    go 写插件相较于 lua 有什么优势吗,我记得 go 的插件在 Windows 上好像不能 build 。。
    chaleaochexist
        2
    chaleaochexist  
    OP
       2022-10-25 15:17:36 +08:00
    @JerAxxxx 么有. 想用 go 写.
    lua 不会写.
    DingJZ
        3
    DingJZ  
       30 天前
    请问后来解决了吗
    chaleaochexist
        4
    chaleaochexist  
    OP
       27 天前
    @DingJZ 没有. 后来 我不负责这部分了.
    最后原因是否解决我不确定.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1075 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 19:18 · PVG 03:18 · LAX 12:18 · JFK 15:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.