Krzysztow / modbus-utils

Modbus client and server command line tools based on libmodbus.
MIT License
35 stars 21 forks source link

Multiple fixes to eliminate mass generated network close-wait connect… #3

Closed spezialist1 closed 4 years ago

spezialist1 commented 4 years ago

…ions

These multiple fixes are intended to eliminate the mass of generated network close-wait connections. Reason: after each session of writing Modbus registers, the mbServer process leaves network close-wait connections. Upon reaching their maximum possible number (Default 1024) mbServer refuses to accept connections.

Krzysztow commented 4 years ago

Hi @spezialist1 . Thanks for the contribution. Is this anyhow reflecting some changes from random-test-server.c, libmodbus?

spezialist1 commented 4 years ago

libmodbus has nothing to do with the above bug. But I did not change random-test-server.c due to lack of time :-(. Of course I did checks using the above test. But since these tests were short-lived, I was satisfied with the result. mbServer with my changes has been working very successfully for two years now in the form of numerous daemons for implementing SNMP to TCP/IP Modbus server for monitoring the data center engineering infrastructure.

Krzysztow commented 4 years ago

Thanks, sorry for slow replies