[Bug 481] New: connectPorts only partially connects two read ports

For more infomation about this bug, visit
Summary: connectPorts only partially connects two read ports
Product: RTT
Version: 1.4.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

When using connectPorts on two compatible read ports, only one of them will end
up in a connection and the other remains unconnected. A second time using
connectPorts with the same ports completes the connection.

[Bug 481] connectPorts only partially connects two read ports

For more infomation about this bug, visit

--- Comment #2 from Peter Soetens

<peter [dot] soetens [..] ...> 2008-01-10 12:31:55 ---
For post-commit review.

$ svn diff -r28817:28818
Index: src/PortInterface.cpp
===================================================================
--- src/PortInterface.cpp (revision 28817)
+++ src/PortInterface.cpp (revision 28818)
@@ -110,7 +110,11 @@
delete aclone;

// finally a connection object !
+ // 1. connect other.
+ if ( other->connectTo( ci ) == false )
+ return false;

+ // 2. connect this.
if ( this->connectTo( ci ) )
return ci->connect();
// failed (type mismatch), cleanup.

[Bug 481] connectPorts only partially connects two read ports

For more infomation about this bug, visit

Peter Soetens

<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #1 from Peter Soetens

<peter [dot] soetens [..] ...> 2008-01-09 22:44:11 ---
$ svn ci src/PortInterface.cpp -m"Fix bug #481: connectPorts only partially
connects two read ports."
Sending src/PortInterface.cpp
Transmitting file data .
Committed revision 28818.