https://gitlab.synchro.net/main/sbbs/-/commit/28ad40b10903623428f8b845
Modified Files:
xtrn/lord2/l2lib.js lord2.js
Log Message:
Start of a timeout handing framework.As of this commit, LORD2 keeps track of the last time a key waspressed, and a timeout occurs five minutes after that if it'swaiting for a key. This has issues as the getstr() timeout doesnot behave in this manner.However, if the timeout callback style works, getstr() and the otherdk functions can grow callback support pretty easily, and this seemslike it may be the best way forward.Further, disconnect handling should be tied up in this, and dorkitdoes not have very robust features for this. In most cases, adisconnect will be treated the same as a timeout, so the same solutionshould likely be usable by both.The biggest challenge is preventing the need for all the code tohave exceptional condition handling, which can be quite tricky asbattles can end by running a REF file (For example, the trainingcentre). This would mean all code paths reachable via REF callswould need to fail nicely in the face of a connection loss/timeout.
--- SBBSecho 3.13-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)