Log the dropped request, and scope the receipt sentence to a reconnect

This commit is contained in:
2026-09-01 20:53:58 +02:00
parent e6250ef44e
commit 471923a7b6
3 changed files with 14 additions and 5 deletions
+5 -1
View File
@@ -68,7 +68,11 @@ export class IncomingRequests {
if (this.onRequest && await this.onRequest(this.session, pduObj)) return;
// The link it arrived on went while the hook ran, so nothing we answer now correlates.
if (this.linkGeneration !== generation) return;
if (this.linkGeneration !== generation) {
this.log.info('session - dropping a request whose link went', { cmdName: pduObj.cmdName });
return;
}
if (!this.session.bindAllows(pduObj.cmdName)) {
this.log.info('session - command the peer\'s bind direction does not carry', {