Skip to content

[Bug]: modbus over serial port(com) could not closed successfully. #1610

Open
@liudianwei

Description

@liudianwei

What happened?

modbus over serial port(com) could not closed successfully, try to call PlcConnection.close() when com disconnect, it will be in an endless loop. the major reason is that it will call channel close by netty automatically when shutdown NioEventLoop, and serial channel will put an doClose in eventLoop, it will call close again because eventLoopUp is not empty, and than, trapped in a dead cycle...
temp solution:
close method should only support call once.
image
image
image
file location plc4x\plc4j\transports\serial\src\main\java\org\apache\plc4x\java\transport\serial

Version

latest

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7

Metadata

Metadata

Assignees

Labels

Modbushttps://plc4x.apache.org/users/protocols/modbus.htmljavaPull requests that update Java code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions