handleIdentifyRequest method
Implementation
Future<void> handleIdentifyRequest(P2PStream stream, PeerId peerId) async {
_log.fine('IdentifyService.handleIdentifyRequest: SERVER received identify request from ${stream.conn.remotePeer} (reported as $peerId) on stream ${stream.id()}');
try {
await sendIdentifyResp(stream, false);
} catch (e) {
// sendIdentifyResp reset the stream. The failure affects only this
// stream; the peer sees it as a failed identify.
_log.log(_quietLevel(stream.conn, Level.WARNING),
'IdentifyService.handleIdentifyRequest: Could not answer identify from $peerId: $e');
}
}