// Only add connections to the connections list once the connection
// has been opened. This ensures that we don't attempt to send messages
// on a close connection.
connections.clear();
for (InputConnectionContext connectionContext : context.connections()) {
final InputConnection connection = new DefaultInputConnection(vertx, connectionContext);
connection.open(new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {
if (result.failed()) {
log.error(String.format("%s - Failed to open input connection: %s", DefaultInputPort.this, connection));
startCounter.fail(result.cause());