Skip to content

[Bug]: Mobus RTU nio event loop #2124

Open
Open
@Joooooooooooooooooooooooooooooooooooker

Description

What happened?

When using Modbus RTU for testing, the following logs appear and continuously output. If the connection fails, can the error be directly returned as an exception?

`2025-05-30 14:54:37 [xxx-5,904-1] INFO o.a.p.j.s.c.NettyChannelFactory

  • Channel is closed, closing worker Group also
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] WARN io.netty.channel.nio.NioEventLoop
  • Selector.select() returned prematurely 512 times in a row; rebuilding Selector org.apache.plc4x.java.transport.serial.SerialPollingSelector@79e06f33.
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] INFO io.netty.channel.nio.NioEventLoop
  • Migrated 1 channel(s) to the new Selector.
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] WARN io.netty.channel.nio.NioEventLoop
  • Selector.select() returned prematurely 512 times in a row; rebuilding Selector org.apache.plc4x.java.transport.serial.SerialPollingSelector@395e3e41.
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] INFO io.netty.channel.nio.NioEventLoop
  • Migrated 1 channel(s) to the new Selector.
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] WARN io.netty.channel.nio.NioEventLoop
  • Selector.select() returned prematurely 512 times in a row; rebuilding Selector org.apache.plc4x.java.transport.serial.SerialPollingSelector@50be3b6f.
    2025-05-30 14:54:37 [nioEventLoopGroup-6-1] INFO io.netty.channel.nio.NioEventLoop
  • Migrated 1 channel(s) to the new Selector.`

Version

0.13.0-SNAPSHOT

Programming Languages

  • plc4c
  • plc4go
  • plc4j
  • plc4net
  • plc4py

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • C-Bus
  • CANopen
  • EtherNet/IP
  • Firmata
  • IEC-69870
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • Profinet
  • S7
  • S7-light

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions