Repository navigation
Releases
v0.2.8
Blocking socket calls retry when a signal interrupts them. A positive timeout below one microsecond rounds up to one microsecond. IPv4 literals reject a leading zero and an octet that is not decimal digits.
- Blocking
recv,send,accept,sendto, andrecvfromretry on EINTR.Poller.waitretries with the time still left. An interrupted blockingconnectwaits until the socket is writable and readsSO_ERROR.closeis not retried. set_read_timeoutandset_write_timeoutround a positive timeout below one microsecond up to one microsecond.IPv4Addressrejects a leading-zero octet and an octet that is not one to three decimal digits.SocketAddress.parseuses the same rule.
Install:
pixi add mojo-net
Channel: https://repo.prefix.dev/modular-community
The modular-community recipe bump follows this tag.
0.2.7
Unix unlink hardening (only socket files), Linux aarch64 st_mode, pixi-add install on modular-community, and a working-prototype RFC for a minimal std.net.
Install:
pixi add mojo-netChannel: https://repo.prefix.dev/modular-community (recipe bump follows).
mojo-net 0.2.4
Package version 0.2.4, matching the recipe so dependents can pin >=0.2.4.
The 0.2.3 tag already carried write_some, connect timeouts, typed connection errors, and UnixListener poller support. 0.2.4 is the version bump those dependents should require.
mojo-net 0.2.3
write_some, connect timeouts, typed connection errors, and UnixListener poller support.
IOStream.write_somerecovers after a partial write. CustomIOStreamtypes must implement it.TCPStream.connect/connect_addraccepttimeout_ns. Expiry is the typedTIMEOUT_ERROR.ECONNREFUSEDmaps toCONNECTION_REFUSED_ERROR;ECONNRESET/EPIPEmap toCONNECTION_RESET_ERROR.UnixListenerexposesdescriptor()andset_nonblocking()so servers can drain accepts throughPoller.- Accepted TCP streams inherit the listener's logical blocking mode. Connected streams expose local and peer endpoints.
v0.2.2
- Added
TCPListener.descriptor()andset_nonblocking()so servers can drain pending connections throughPollerwithout changing the blocking default. - Extended the CPython differential to release 20 clients together and verify that the listener drains the accept queue to a typed would-block result.
v0.2.1
- Added
ReadinessStream, a pollable non-blocking partial-I/O trait shared by
TCPStreamandUnixStreamwithout changing the blockingIOStreamAPI. - Added Unix partial writes and trait-generic TCP and Unix differential checks
against CPython sockets.
v0.2.0
This release adds the transport primitives needed by the rest of the package family.
- Unix domain listeners and streams, including Linux abstract namespace addresses
- Nonblocking socket operations
- Readiness polling through kqueue on macOS and epoll on Linux
- The IOStream trait shared by TCP, Unix, TLS, HTTP/2, and gRPC transports
- A compiled
net.mojocpackage with a strict Mojo 1.0 compatibility bound and clean installed-consumer verification
Correctness remains checked against CPython sockets on macOS and Linux.
v0.1.0
Initial release.
- Blocking TCP (
TCPListener,TCPStream) with hostname resolution,
read/write timeouts surfaced as a typed timeout error, half-close,
TCP_NODELAY,bytes_available(), and SIGPIPE suppression. UDPSocketwithsend_to/recv_fromand read timeouts.SocketAddress: IPv4 + IPv6 with platformsockaddrcoding
(macOSsin_lenvs Linuxsa_family), v6 scope ids.resolve()viagetaddrinfo(3)with platformaddrinfolayouts.- Differential compatibility suite vs CPython sockets; loopback
benchmarks; macOS (arm64) and Linux (x86-64/arm64).