Add single connection support to Server

Open
#293 0 comments 0 reactions 0 assignees View on GitHub

@KarstenB is already working on this.

Since May 12, 2026.

  • #292 by @KarstenB — closed without merging
  • #314 by @KarstenB — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
networking

Research direction

Start with src/asynchronous/server.rs, especially the listener handling and spawn_connection_handler path described in the issue. Read proposal #292 and the start_connected direction; done means Server can accept one already-connected connection without wrapping it in a listener and does not hide its connection-run errors.

Written by the indexing model from the issue text.

Description

The src/asynchronous/server.rs currently assumes that there is a stream of incoming connections. For my scenario (NRI plugin) this is disadvantageous because I am already connected. Wrapping the connection into a Listener. with a once stream requires 'static.

There is also the downside that spawn_connection_handler hides potential errors:

    spawn(async move {
        conn.run()
            .await
            .map_err(|e| {
                trace!("connection run error. {}", e);
            })
            .ok();
    });

#292 proposes a solution by creating a start_connected method.

Dominant language
Rust
Stars
374
Forks
64
Avg merge
3d 5h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/ttrpc-rust

All issues in containerd/ttrpc-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.