Detect when Marinetti has disconnected, and close all sessions at that time.

Also, detect and give an error when invalid session numbers are used.
This commit is contained in:
Stephen Heumann
2017-04-23 19:38:50 -05:00
parent 13e4f4d72f
commit a38e2f716a
4 changed files with 65 additions and 13 deletions

2
dsi.c
View File

@@ -158,7 +158,7 @@ top:
SendDSIMessage(sess, &attentionReplyRec, NULL, NULL);
CallAttentionRoutine(sess, aspAttenNormal, sess->attentionCode);
} else if (sess->reply.command == DSICloseSession) {
EndASPSession(sess, aspAttenClosed);
EndASPSession(sess, aspAttenClosed, TRUE);
return;
} else if (sess->reply.command == DSITickle) {
tickleRequestRec.requestID = htons(sess->nextRequestID++);