Autoclose pipeTransportPair

In Router::pipeToRouter function, the pipeTransportPair transports should be closed if the piped producer stops.

No because many PipeConsumers and Producers can exist on the same PipeTransport. The PipeTransport pair is created just once when it’s required to connect router A with router B and it’s never destroyed until router A or B are closed.

1 Like

Ok so there is no chance to create e memory leak. Right

Yes, I don’t think real chances for a leak in any suitable scenario.