Skip to content

Is Sink.is_writable() thread-safe #1952

Closed
@ochafik

Description

@ochafik

Hi, I see a fair bit of work has been done to make httplib threadsafe, wondering if that extends to Sink.is_writable()?

Context: trying to detect closed connections (in a set_content_provider setup) from another thread in llama.cpp. Our writes are still happening only on the http thread, but knowing when to cancel the processing would be amazing.

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