Skip to content

高并发场景如何处理 #18

@xiezhiping2018

Description

@xiezhiping2018

您好,我发现流式请求高并发场景下,前面请求调用reset会影响后面的请求,导致后续请求的vad检测不准,个人理解是否因为执行了self.model_caches = None导致的?
针对这种场景,能否将init中的model_caches放在detect_chunk中维护,作为入参传入,这样可以针对每个请求去维护一个model_caches,是否就不会出现互相影响的问题了?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions