On closing of connections #3353
Replies: 7 comments 37 replies
-
Should a single
|
Beta Was this translation helpful? Give feedback.
-
Which errors should we report to a
|
Beta Was this translation helpful? Give feedback.
-
Meta level: Thanks for the great write-up with lots of context @thomaseizinger. Allows everyone to join in easily. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is the correct place to bring it up, but there may be another angle to this. I'm using One solution I came across is the usage of Alternatively, I suppose I could hook in to What are the recommendations for request_response? |
Beta Was this translation helpful? Give feedback.
-
An idea regarding idle connections: With #3844, we will remove Whilst implementing this, it occurred to me that an idle connection timeout is a useful feature that we could provide as a general setting on the Moreover, we could automatically determine that a
This would completely remove the need for:
Instead, users would configure an idle timeout of X seconds that kicks in once the connection is idle. Never closing idle connections could be achieved by setting an absurdly high value for the idle timeout. I think this would be a great simplification. Opinions welcome. |
Beta Was this translation helpful? Give feedback.
-
What do you think of this @mxinden? |
Beta Was this translation helpful? Give feedback.
-
I am closing this now that we have issues for all discussed points here! |
Beta Was this translation helpful? Give feedback.
-
Context: This started in #3201.
Currently, connections can be closed in a variety of ways:
Swarm
can close a connectionNetworkBehaviour
can close a connectionConnectionHandler
can close a connectionThe first one is definitely legit. A user should be able to close one or all connections to a particular peer.
The second is legit too. Esp. with #2824 coming, a
NetworkBehaviour
needs to be able to close a connection to a peer.What I'd like to discuss are two things:
ConnectionHandler
be able to close an entire connection? On closing of connections #3353 (comment)ConnectionHandler
? On closing of connections #3353 (comment)Beta Was this translation helpful? Give feedback.
All reactions