servo / servo/ipc-channel

Ability to send arbitrary FDs across processes

Open
#263 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.1k
Forks
161
Avg merge
1d 5h
Merged PRs (30d)
1

Description

Currently only channels and shared memory regions can be sent via IPC. It would be nice if one could serialize arbitrary objects implementing IntoRawFd and FromRawFd.

eg:

let handle = Handle::new(File::open(...).unwrap());
tx.send(handle).unwrap();
let file = rx.recv().unwrap().into_inner();

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by tracing how ipc-channel currently serializes and transfers channels and shared memory regions between processes. Determine how arbitrary objects implementing IntoRawFd and FromRawFd would fit that path, using the Handle example as the target behavior. Done means such a handle can be sent and received across processes and recovered as a File.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
distributed-systems, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.