Skip to content

Change Ping to NewEphemeralStream

Christopher Schinnerl requested to merge chris/ephemeral-stream into master

This MR changes Ping to NewEphemeralStream.

The behaviour is almost the same as before but now a stream is returned that can be used for a single RPC (e.g. fetching a price table in the hostdb) and which will then close its own mux if the mux is idle.

If the mux is not idle, it won't be closed. That way we avoid a hostdb scan killing all active connections to the hosts we are actively using.

Merge request reports