Open RD2G opened 1 year ago
v3.1.8
Windows
Intel CPU, 64Bit
I encountered a problem when testing the modbus server. The server exits when the client disconnects. I used the demo from https://github.com/stephane/libmodbus/blob/master/tests/bandwidth-server-many-up.c. The server hangs on line 128 (close(master_socket);).
The server should not exit.
libmodbus version
v3.1.8
OS and/or distribution
Windows
Environment
Intel CPU, 64Bit
Description
I encountered a problem when testing the modbus server. The server exits when the client disconnects. I used the demo from https://github.com/stephane/libmodbus/blob/master/tests/bandwidth-server-many-up.c. The server hangs on line 128 (close(master_socket);).
Actual behavior if applicable
I encountered a problem when testing the modbus server. The server exits when the client disconnects. I used the demo from https://github.com/stephane/libmodbus/blob/master/tests/bandwidth-server-many-up.c. The server hangs on line 128 (close(master_socket);).
Expected behavior or suggestion
The server should not exit.
Steps to reproduce the behavior (commands or source code)
libmodbus output with debug mode enabled