• exec/load/http.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Nov 23 22:45:05 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/54641a92ad271bc0a4b5675d
    Modified Files:
    exec/load/http.js
    Log Message:
    http.js: optional abort_check hook to abandon a pending request

    When an HTTPRequest has an abort_check function, each read first waits
    for data in 100 ms polls and calls abort_check between them. If it
    returns true, the connection is closed and an Error with .aborted = true
    is thrown. An interactive caller can use this to give up on a slow
    response, e.g. when the user starts typing. The overall wait is still
    bounded by recv_timeout.

    Requests without abort_check behave as before.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)