Skip to content

net: fill API gaps for grpc and wazero - #78

Open
0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:grpc-wazero-fills
Open

0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:grpc-wazero-fills

Conversation

@0pcom

@0pcom 0pcom commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #95.

Three source compatibility fills, found while compiling grpc and wazero under
TinyGo.

TCPListener.SyscallConn mirrors the existing TCPConn stub, which wazero's
socket layer requires. Dialer.Control and ControlContext are fields grpc sets,
never invoked because the netdev dial exposes no raw syscall.RawConn.
IPConn.Read delegates to ReadFrom so IPConn satisfies io.Reader, which grpc
type switches on.

@deadprogram

Copy link
Copy Markdown
Member

Please update or replace this PR to follow https://github.com/tinygo-org/net/blob/main/AGENTS.md

Thank you.

TCPListener.SyscallConn mirrors the TCPConn stub, which wazero's socket layer
requires. Dialer.Control and ControlContext are fields grpc sets, never
invoked here because the netdev dial exposes no raw syscall.RawConn.
IPConn.Read delegates to ReadFrom so IPConn satisfies io.Reader for grpc.
@0pcom 0pcom changed the title net: API-compat fills for grpc and wazero (SyscallConn, Dialer.Control, IPConn.Read) net: fill API gaps for grpc and wazero Sep 30, 2026
@0pcom

0pcom commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

Updated to follow AGENTS.md. The description, commit messages and comments are rewritten, and the fixup commits are gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net: SyscallConn, Dialer.Control and IPConn.Read are missing for grpc and wazero

2 participants