Skip to content

Commit 377273d

Browse files
committed
Bump to v3.2.0
1 parent 208a528 commit 377273d

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

NEWS.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NEWS
22

3-
## libmodbus 3.2.0 (2026-07-XX)
3+
## libmodbus 3.2.0 (2026-07-02)
44

55
- Add `modbus_proxy()` to bridge two Modbus backends (closes #70).
66
- Add termios2 support to allow custom baud rates (RTU).
@@ -37,6 +37,25 @@
3737
- modbus-rtu: report a failure to restore termios settings on close.
3838
- `modbus_new_rtu`: reject negative baud rates.
3939
- modbus-tcp: guard `freeaddrinfo()` against NULL on resolver failure.
40+
- `modbus_new_tcp`: NUL-terminate the IP string when `ip` is NULL.
41+
- `modbus_reply`: validate FC22 request length before writing the register.
42+
- modbus-tcp: keep `ctx->s` consistent across failed or repeated connects (no
43+
false success on a stale descriptor, no socket leak on reconnect).
44+
- modbus-tcp: don't override the user error recovery mode in the flush overflow
45+
path.
46+
- modbus-tcp: fully initialize the sigaction struct for the SIGPIPE handler on
47+
BSD.
48+
- modbus-rtu: fix the Windows serial handle lifecycle (initialize the handle,
49+
guard close against a never-opened handle and reset it after close).
50+
- modbus-rtu: sleep the RTS turnaround delay in chunks to stay portable with
51+
`usleep()`.
52+
- `modbus_new_rtu`: validate `data_bit` and `stop_bit` arguments.
53+
- `modbus_send_raw_request_tid`: reject NULL `raw_req` with `EINVAL`.
54+
- `modbus_get_byte_from_bits`: remove an always-false assert and clamp `nb_bits`
55+
consistently in debug and release builds.
56+
- Preserve errno across the Windows error-recovery paths.
57+
- tests: don't kill the unit test server on RTU bad-CRC frames.
58+
- tests: fix integer overflow in the bandwidth-client rate computation.
4059

4160
## libmodbus 3.1.12 (2026-02-13)
4261

0 commit comments

Comments
 (0)