Skip to content

Error in modbus server #511

Description

@tomac
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  File "/usr/lib/python3.6/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
    return handle(*args_tuple)
  File "/usr/lib/python3.6/site-packages/conpot/protocols/modbus/modbus_server.py", line 125, in handle
    query, request, self.mode
  File "/usr/lib/python3.6/site-packages/conpot/protocols/modbus/slave_db.py", line 77, in handle_request
    request_pdu, broadcast=True)
  File "/usr/lib/python3.6/site-packages/conpot/protocols/modbus/slave.py", line 87, in handle_request
    (self.function_code, ) = struct.unpack(">B", request_pdu[:1])
struct.error: unpack requires a buffer of 1 bytes
2020-08-10T09:31:42Z <Greenlet at 0x7f2c8e40c848: _handle_and_close_when_done(<bound method ModbusServer.handle of <conpot.proto, <bound method StreamServer.do_close of <StreamServ, (<gevent._socket3.socket [closed]  object, fd=-1, )> failed with error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions