mattn / mattn/mruby-thread

Add support for File/IO objects to migrate_simple_value

Open
#8 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
49
Forks
31
PR merge metrics
No merged PRs in 30d

Description

It should be possible to pass a TCPSocket to a new Thread:

loop do
  Thread.new(@server.accept) do |client|
    client.puts "hello"
    client.close
  end
end

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 locating migrate_simple_value and tracing how Thread.new handles arguments, then inspect the existing handling for File/IO-like objects. Verify that passing the TCPSocket returned by @server.accept to Thread.new permits client.puts and client.close to run successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.