Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Version 1.5.0
* Modbus read retries works only when empty/no message is received
* Change test runner from nosetest to pytest
* Fix Misc examples
>>>>>>> master

Version 1.4.0
------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion pymodbus/server/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ class ModbusTcpServer(socketserver.ThreadingTCPServer):
"""

def __init__(self, context, framer=None, identity=None,
address=None, handler=None, **kwargs):
address=None, handler=None, allow_reuse_address=False,
**kwargs):
""" Overloaded initializer for the socket server

If the identify structure is not passed in, the ModbusControlBlock
Expand All @@ -285,10 +286,13 @@ def __init__(self, context, framer=None, identity=None,
:param address: An optional (interface, port) to bind to.
:param handler: A handler for each client session; default is
ModbusConnectedRequestHandler
:param allow_reuse_address: Whether the server will allow the
reuse of an address.
:param ignore_missing_slaves: True to not send errors on a request
to a missing slave
"""
self.threads = []
self.allow_reuse_address = allow_reuse_address
self.decoder = ServerDecoder()
self.framer = framer or ModbusSocketFramer
self.context = context or ModbusServerContext()
Expand Down