Include `SO_REUSEPORT` into constant list of socket.lua.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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