dao-xyz / peerbit

P2P database framework with encryption, sharding and search
https://peerbit.org
Apache License 2.0
196 stars 15 forks source link

Close half open streams after a while #187

Open marcus-pousette opened 1 year ago

marcus-pousette commented 1 year ago

The Streamprotocol expects both parties to open inbound and outbound streams. In the case of when one party does not open a outbound stream, the other party should clouse its own outbound stream after a while and forget about the connection.