Skip to content

Multi-threaded HTTP runtime for observer API #73

Description

@semyon-dev

Problem

The HTTP API server (:40403) becomes completely unresponsive under sustained polling (1 req/s from a testbed monitor). TCP connections are accepted (kernel-level), but the HTTP handler never sends a response — clients receive 0 bytes and timeout.

Root Cause

  1. Single-threaded HTTP runtime

node/src/rust/runtime/servers_instances.rs (~line 280):

let http_server_handle = tokio::task::spawn_blocking(move || {
    let rt = tokio::runtime::Builder::new_current_thread()
        .enable_all()
        .build()?;
    rt.block_on(async move {
        axum::serve(listener, http_router).await
    })
});

The entire HTTP server runs on a single OS thread. If that thread blocks, all HTTP connections stall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions