Debian Codegraph @

CHANGELOG.md

raw
1 # CHANGELOG
2
3 ## v0.7.0
4
5 **This is the first release of package socket that only supports Go 1.26+.**
6
7 - [New API] [PR](https://github.com/mdlayher/socket/pull/18):
8 add `Conn.SendmsgBuffers` to wrap `sendmsg(2)` with scatter-gather I/O
9 support for multiple input buffers.
10 - [New API]: add `Conn.SetsockoptBytes` and `Conn.GetsockoptBytes` for
11 binary-safe byte-slice socket options on Linux.
12 - [Bug Fix]: context cancelation is now honored immediately for blocking
13 operations when the context also carries a deadline; previously cancelation
14 was not noticed until the deadline expired.
15 - [Improvement]: bump build to Go 1.26.0. Package socket now supports Go 1.26
16 and Go 1.27, mirroring Go's own release policy.
17
18 ## v0.6.1
19
20 - [Improvement]: update dependencies.
21
22 ## v0.6.0
23
24 **This is the first release of package socket that only supports Go 1.25+.**
25
26 - [Bug Fix] [PR](https://github.com/mdlayher/socket/pull/16):
27 `socket.Socket` with `Config.NetNS` set now returns the error from socket
28 creation inside the target network namespace, rather than silently discarding
29 it and returning a nil `Conn`.
30 - [Improvement]: bump build to Go 1.25.0.
31 - [Improvement]: enable `golangci-lint` in CI.
32
33 ## v0.5.2
34
35 - [Improvement]: Bump build to Go 1.23.0. Note this is required for the latest
36 Go extended library versions.
37
38 ## v0.5.1
39
40 - [Improvement]: revert `go.mod` to Go 1.20 to [resolve an issue around Go
41 module version upgrades](https://github.com/mdlayher/socket/issues/13).
42
43 ## v0.5.0
44
45 **This is the first release of package socket that only supports Go 1.21+.
46 Users on older versions of Go must use v0.4.1.**
47
48 - [Improvement]: drop support for older versions of Go.
49 - [New API]: add `socket.Conn` wrappers for various `Getsockopt` and
50 `Setsockopt` system calls.
51
52 ## v0.4.1
53
54 - [Bug Fix] [commit](https://github.com/mdlayher/socket/commit/2a14ceef4da279de1f957c5761fffcc6c87bbd3b):
55 ensure `socket.Conn` can be used with non-socket file descriptors by handling
56 `ENOTSOCK` in the constructor.
57
58 ## v0.4.0
59
60 **This is the first release of package socket that only supports Go 1.18+.
61 Users on older versions of Go must use v0.3.0.**
62
63 - [Improvement]: drop support for older versions of Go so we can begin using
64 modern versions of `x/sys` and other dependencies.
65
66 ## v0.3.0
67
68 **This is the last release of package socket that supports Go 1.17 and below.**
69
70 - [New API/API change] [PR](https://github.com/mdlayher/socket/pull/8):
71 numerous `socket.Conn` methods now support context cancelation. Future
72 releases will continue adding support as needed.
73 - New `ReadContext` and `WriteContext` methods.
74 - `Connect`, `Recvfrom`, `Recvmsg`, `Sendmsg`, and `Sendto` methods now accept
75 a context.
76 - `Sendto` parameter order was also fixed to match the underlying syscall.
77
78 ## v0.2.3
79
80 - [New API] [commit](https://github.com/mdlayher/socket/commit/a425d96e0f772c053164f8ce4c9c825380a98086):
81 `socket.Conn` has new `Pidfd*` methods for wrapping the `pidfd_*(2)` family of
82 system calls.
83
84 ## v0.2.2
85
86 - [New API] [commit](https://github.com/mdlayher/socket/commit/a2429f1dfe8ec2586df5a09f50ead865276cd027):
87 `socket.Conn` has new `IoctlKCM*` methods for wrapping `ioctl(2)` for `AF_KCM`
88 operations.
89
90 ## v0.2.1
91
92 - [New API] [commit](https://github.com/mdlayher/socket/commit/b18ddbe9caa0e34552b4409a3aa311cb460d2f99):
93 `socket.Conn` has a new `SetsockoptPacketMreq` method for wrapping
94 `setsockopt(2)` for `AF_PACKET` socket options.
95
96 ## v0.2.0
97
98 - [New API] [commit](https://github.com/mdlayher/socket/commit/6e912a68523c45e5fd899239f4b46c402dd856da):
99 `socket.FileConn` can be used to create a `socket.Conn` from an existing
100 `os.File`, which may be provided by systemd socket activation or another
101 external mechanism.
102 - [API change] [commit](https://github.com/mdlayher/socket/commit/66d61f565188c23fe02b24099ddc856d538bf1a7):
103 `socket.Conn.Connect` now returns the `unix.Sockaddr` value provided by
104 `getpeername(2)`, since we have to invoke that system call anyway to verify
105 that a connection to a remote peer was successfully established.
106 - [Bug Fix] [commit](https://github.com/mdlayher/socket/commit/b60b2dbe0ac3caff2338446a150083bde8c5c19c):
107 check the correct error from `unix.GetsockoptInt` in the `socket.Conn.Connect`
108 method. Thanks @vcabbage!
109
110 ## v0.1.2
111
112 - [Bug Fix]: `socket.Conn.Connect` now properly checks the `SO_ERROR` socket
113 option value after calling `connect(2)` to verify whether or not a connection
114 could successfully be established. This means that `Connect` should now report
115 an error for an `AF_INET` TCP connection refused or `AF_VSOCK` connection
116 reset by peer.
117 - [New API]: add `socket.Conn.Getpeername` for use in `Connect`, but also for
118 use by external callers.
119
120 ## v0.1.1
121
122 - [New API]: `socket.Conn` now has `CloseRead`, `CloseWrite`, and `Shutdown`
123 methods.
124 - [Improvement]: internal rework to more robustly handle various errors.
125
126 ## v0.1.0
127
128 - Initial unstable release. Most functionality has been developed and ported
129 from package [`netlink`](https://github.com/mdlayher/netlink).