tarantool / tarantool/doc

Include `SO_REUSEPORT` into constant list of socket.lua.

Open
#5,612 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

SO_REUSEPORT was added in Linux 3.9. It enables multithreaded TCP
servers with much better connection balancing across threads than
traditional approaches.

See man 7 socket for more information.

Example:


-- s - is a socket object
s:setsockopt('SOL_SOCKET', 'SO_REUSEPORT')

Requested by @unera in https://github.com/tarantool/tarantool/commit/45da40a328540f38ae32c076152e8f6f029d6b39.

Contributor guide

Open the contributing guide

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 socket.lua and its constant list; compare the requested SO_REUSEPORT with the Linux socket documentation in man 7 socket and the referenced commit. Done means SO_REUSEPORT is included in the list and the setsockopt example can use it.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
networking
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.