added none type to return value of negotiate and changed caller handles to handle none. Added newsfragment.

This commit is contained in:
unniznd
2025-08-12 21:50:10 +05:30
parent b01596ad92
commit b838a0e3b6
5 changed files with 17 additions and 3 deletions

View File

@ -288,6 +288,9 @@ class BasicHost(IHost):
protocol, handler = await self.multiselect.negotiate(
MultiselectCommunicator(net_stream), self.negotiate_timeout
)
if protocol is None:
await net_stream.reset()
raise StreamFailure("No protocol selected")
except MultiselectError as error:
peer_id = net_stream.muxed_conn.peer_id
logger.debug(