Permalink
Browse files

Apply receive timeout to commPort when using RxtxChannel. Part of [#1390

]
  • Loading branch information...
cmcmaugh authored and Norman Maurer committed Feb 22, 2014
1 parent 8c68c5a commit cc4198971e08cc28c662589e90ed1a10a5be9ab4
Showing with 1 addition and 1 deletion.
  1. +1 −1 transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannel.java
@@ -65,7 +65,7 @@ protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress
RxtxDeviceAddress remote = (RxtxDeviceAddress) remoteAddress;
final CommPortIdentifier cpi = CommPortIdentifier.getPortIdentifier(remote.value());
final CommPort commPort = cpi.open(getClass().getName(), 1000);
-
+ commPort.enableReceiveTimeout(config().getOption(READ_TIMEOUT));
deviceAddress = remote;
serialPort = (SerialPort) commPort;

0 comments on commit cc41989

Please sign in to comment.