Skip to content

Releases

v0.2.8

Choose a tag to compare

@cursor cursor released this 07 Oct 18:25
d028cbb

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, and recvfrom retry on EINTR. Poller.wait retries with the time still left. An interrupted blocking connect waits until the socket is writable and reads SO_ERROR. close is not retried.
  • set_read_timeout and set_write_timeout round a positive timeout below one microsecond up to one microsecond.
  • IPv4Address rejects a leading-zero octet and an octet that is not one to three decimal digits. SocketAddress.parse uses 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

Choose a tag to compare

@cursor cursor released this 21 Sep 16:07
0b53beb

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-net

Channel: https://repo.prefix.dev/modular-community (recipe bump follows).

mojo-net 0.2.4

Choose a tag to compare

@cursor cursor released this 28 Aug 03:03
a6ad908

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

Choose a tag to compare

@cursor cursor released this 28 Aug 03:03
c61c91f

write_some, connect timeouts, typed connection errors, and UnixListener poller support.

  • IOStream.write_some recovers after a partial write. Custom IOStream types must implement it.
  • TCPStream.connect / connect_addr accept timeout_ns. Expiry is the typed TIMEOUT_ERROR.
  • ECONNREFUSED maps to CONNECTION_REFUSED_ERROR; ECONNRESET / EPIPE map to CONNECTION_RESET_ERROR.
  • UnixListener exposes descriptor() and set_nonblocking() so servers can drain accepts through Poller.
  • Accepted TCP streams inherit the listener's logical blocking mode. Connected streams expose local and peer endpoints.

v0.2.2

Choose a tag to compare

@nsalerni nsalerni released this 22 Aug 16:57
03dcbb0
  • Added TCPListener.descriptor() and set_nonblocking() so servers can drain pending connections through Poller without 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

Choose a tag to compare

@nsalerni nsalerni released this 22 Aug 16:34
84130a9
  • Added ReadinessStream, a pollable non-blocking partial-I/O trait shared by
    TCPStream and UnixStream without changing the blocking IOStream API.
  • Added Unix partial writes and trait-generic TCP and Unix differential checks
    against CPython sockets.

v0.2.0

Choose a tag to compare

@nsalerni nsalerni released this 21 Aug 03:11

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.mojoc package 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

Choose a tag to compare

@nsalerni nsalerni released this 20 Aug 17:03

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.
  • UDPSocket with send_to / recv_from and read timeouts.
  • SocketAddress: IPv4 + IPv6 with platform sockaddr coding
    (macOS sin_len vs Linux sa_family), v6 scope ids.
  • resolve() via getaddrinfo(3) with platform addrinfo layouts.
  • Differential compatibility suite vs CPython sockets; loopback
    benchmarks; macOS (arm64) and Linux (x86-64/arm64).