apple / apple/servicetalk

Allow custom `SocketOption`s to be set and get

Open
#953 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1k
Forks
229
Avg merge
23h 23m
Merged PRs (30d)
16

Description

We allow users to set `SocketOption`s on the client/server builder and to query `SocketOption`s on `ConnectionContext` API. Currently, these methods support only `SocketOption` constants from `java.net.StandardSocketOptions` and `io.servicetalk.transport.api.ServiceTalkSocketOptions`. However, the `java.net.SocketOption` API is generic and we should allow users to provide a custom implementation of this interface. We can match it with the `ChannelOption` that netty uses internally.

Contributor guide

Open the contributing guide

Research direction

Trace the client/server builder APIs and the ConnectionContext socket-option methods, then compare their handling of StandardSocketOptions and ServiceTalkSocketOptions with Netty's ChannelOption mapping. Done means a custom java.net.SocketOption implementation can be accepted for setting and querying wherever these APIs support socket options.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.