Currently, GnuTLS handshakes are synchronous (blocking) in lrmd_tcp_connect_cb(). If two remote connection resources are started at roughly the same time on the same host, the first could block long enough to cause the second to fail. The handshake should be asynchronous (need separate lrmd_tcp_connect_cb()-like callbacks for sync and async).
See also: