Skip to content

net: API-compat fills for grpc and wazero (SyscallConn, Dialer.Control, IPConn.Read) - #78

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

net: API-compat fills for grpc and wazero (SyscallConn, Dialer.Control, IPConn.Read)#78
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

Three small source-compatibility fills, surfaced compiling larger Go programs (grpc, wazero) under TinyGo:

  • TCPListener.SyscallConn: mirror the existing TCPConn stub; wazero's socket layer requires syscall.Conn.
  • Dialer.Control + ControlContext: API-compat fields grpc sets (not invoked; the netdev dial exposes no raw syscall.RawConn).
  • IPConn.Read: delegate to ReadFrom so IPConn satisfies io.Reader (grpc type-switches on it).

🤖 Generated with Claude Code

https://claude.ai/code/session_01C3X3gvq8ZggMRvzVzWm66i

…IPConn.Read)

- TCPListener.SyscallConn: mirror the TCPConn stub; wazero's socket layer
  requires syscall.Conn.
- Dialer.Control + ControlContext: API compat fields grpc sets (not invoked;
  the netdev dial exposes no raw syscall.RawConn).
- IPConn.Read: delegate to ReadFrom so IPConn satisfies io.Reader (grpc
  type-switches it).
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.

1 participant