Skip to content

proxy.domain-fronting #413

@Toki2Me

Description

@Toki2Me

mtg стоит в контейнере на микротике rb4011 arm7
используется master сборка
периодически, примерно 50/50 вместо отработки правила proxy.domain-fronting выпадает ошибка:
{"level":"debug","logger":"ants","timestamp":1774659769148,"message":"worker exits from panic: runtime error: index out of range [-1]\ngoroutine 70 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x78\ngithub.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1.1()\n\tgithub.com/panjf2000/ants/v2@v2.12.0/worker_func.go:61 +0x108\npanic({0x6dea38, 0x325c0e0})\n\truntime/panic.go:860 +0x104\ngithub.com/9seconds/mtg/v2/events.EventStream.Send({{0x756368, 0x30011a0}, 0x3002f18, {0x32f46b0, 0x4, 0x4}}, {0x7563f4, 0x30ba720}, {0x754f88, 0x30ba7e0})\n\tgithub.com/9seconds/mtg/v2/events/event_stream.go:41 +0x190\ngithub.com/9seconds/mtg/v2/mtglib.(*Proxy).ServeConn(0x32ad088, {0x7587a4, 0x316a070})\n\tgithub.com/9seconds/mtg/v2/mtglib/proxy.go:73 +0x3d4\ngithub.com/9seconds/mtg/v2/mtglib.NewProxy.func1({0x70c158, 0x316a070})\n\tgithub.com/9seconds/mtg/v2/mtglib/proxy.go:370 +0x50\ngithub.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1()\n\tgithub.com/panjf2000/ants/v2@v2.12.0/worker_func.go:72 +0xbc\ncreated by github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run in goroutine 45\n\tgithub.com/panjf2000/ants/v2@v2.12.0/worker_func.go:49 +0x7c\n\n"}

с чем этом может быть связано?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions