Skip to content

Ds/address pr comments#4

Open
maceip wants to merge 3 commits intodirect-sockets-v2from
ds/address-pr-comments
Open

Ds/address pr comments#4
maceip wants to merge 3 commits intodirect-sockets-v2from
ds/address-pr-comments

Conversation

@maceip
Copy link
Owner

@maceip maceip commented Mar 6, 2026

No description provided.

claude added 3 commits March 5, 2026 18:01
simplify globalThis check per sbc100 suggestion
add sock opt constants to struct_info json and use cDefs instead of
hardcoded vals per sbc100 feedback
extract doh dns resolution out of this pr per sbc100 req to split
into sep pr - _emscripten_lookup_name now uses std dns only
add asyncify guard w error msg at top of file per sbc100
add direct sockets section to networking rst docs per sbc100
fix sockpair naming to use monotonic counter instead of
Object.keys().length which can produce dupes after close
getsockname getpeername errno propagation already correct
fionread udp datagram handling already addressed
stream_ops read write already handle udp dgram shape
connect failure already preserves bound state
_emscripten_lookup_name deps and ret type already fixed
dns address_map already stores string not array

https://claude.ai/code/session_013tMRcS8HLZpNDZ4vLoNp7C
dns resolution here uses standard emscripten fake dns, not doh.
doh will be a separate optional feature in its own pr.

https://claude.ai/code/session_013tMRcS8HLZpNDZ4vLoNp7C
per the Direct Sockets spec, set dnsQueryType to 'ipv4' for AF_INET
sockets so Chrome resolves the correct record type. previously only
AF_INET6 was explicit; AF_INET relied on OS auto-detection which
could return an IPv6 address for an IPv4 socket.

https://claude.ai/code/session_013tMRcS8HLZpNDZ4vLoNp7C
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.

2 participants