;;-*- Mode: text; Package: cl-user; -*- CL-HTTP 73.0 SBCL Port 1.12.5 For information on how to obtain the distribution or other questions about CL-HTTP, contact bug-cl-http@cl-http.org. This port runs on: * SBCL 2.x on macOS (Apple Silicon and Intel) o Tested with SBCL 2.5.0 on macOS 15.x (Darwin 25.x, ARM64) o All SBCL 2.x releases should work (uses sb-thread, sb-bsd-sockets, sb-posix, sb-gray, sb-mop, sb-introspect) * SBCL 2.x on Linux (x86-64, ARM64) should work but is untested. The port uses only standard SBCL APIs with no platform-specific code. The SBCL port of CL-HTTP 73.0 provides the complete server, client, proxy, and W4 web walker subsystems. SSL/TLS support uses pure-tls, a pure Common Lisp TLS 1.3 implementation with no C/FFI dependencies. 1.12.5 (September 20, 2026) * AN H2 HEADER SET COULD HAND AN INTEGER WHERE A HEADER OBJECT BELONGED, and on SBCL it did. MAKE-H2-HEADER-SET-RESOURCE built the header set's two index vectors with no :INITIAL-ELEMENT. ANSI leaves the contents of such an array undefined -- LispWorks supplies NIL and SBCL supplies 0 -- and INSTANTIATE-BUFFERED-HEADER reuses whatever object already occupies a slot, deciding by testing that slot for NIL. 0 is true, so the integer went straight to INITIALIZE-BUFFERED-HEADER and (SETF HEADER-KEYWORD) had no applicable method for it. The H1 constructor in http:server;headers.lisp has always passed :INITIAL-ELEMENT NIL; the H2 copy dropped it. Both vectors now pass it. Seen as an intermittent failure of client-matrix cell C2 (HTTP/1.1 client through the plain forward proxy, CONNECT to an HTTPS origin) on the OPTIONS method, which returned no status at all; the origin was answering 200 throughout. Reproduced on 2 of 3 runs before the fix and clean after it, taking SBCL's client matrix from 41/42 to 42/42. LispWorks never reproduced it, so this release is a no-op there and bumps only because the file is portable. 1.12.4 (September 20, 2026) * THE CONNECTION LIMITS WERE NEVER RELATED TO THE FILE DESCRIPTOR BUDGET, so the server ran out of descriptors before its own admission control could engage, and the failure landed on whatever asked for a descriptor next. On macOS every Lisp starts with a soft RLIMIT_NOFILE of 256 -- from the Finder and from a shell alike -- while *MAXIMUM-NUMBER-OF-CONNECTIONS* was 200, *REJECT-CONNECTION-THRESHOLD* 250 and the adaptive ceiling 1000. A connection costs one descriptor and a proxied connection two, so 200 connections wanted 480 against a budget of 256. A full test matrix duly exhausted them and took down the port 8000 access log and the proxy log. o CONFIGURE-CONNECTION-LIMITS, called from RESET-SERVER-LOCAL-HOST-VARIABLES, now asks the host for *DESIRED-FILE-DESCRIPTOR-LIMIT* descriptors (4096; NIL on Genera), reads back what was actually granted rather than assuming the request succeeded, and derives the connection limits from it. *FILE-DESCRIPTOR-RESERVE* (128) is withheld from connections for logging, the listeners, the files served and the Lisp itself, and *FILE-DESCRIPTORS-PER-CONNECTION* (2) converts what remains into a connection count. **Adaptive growth of the threshold is capped at the budget as well**, so no amount of load can walk the server into the reserve. The budget is a ceiling and never a floor: a configured limit below what the host would allow is respected, and a policy hard limit is lowered by the budget but never raised by it. *REQUESTED-NUMBER-OF-CONNECTIONS* records what was asked for so that raising the descriptor limit later restores it instead of ratcheting down from the reduced value. A reduction is reported to the console with the arithmetic and the remedy. o New per-port WWW-UTILS primitives FILE-DESCRIPTOR-LIMIT and SET-FILE-DESCRIPTOR-LIMIT. SB-POSIX and SB-UNIX export no rlimit interface, so SBCL declares getrlimit and setrlimit through SB-ALIEN. They never lower a limit the host already granted. Genera rations no descriptors and returns NIL, which leaves the configured limits alone. * A TRANSIENT LOGGING ERROR KILLED LOGGING FOR THE LIFE OF THE IMAGE. TASK-QUEUE-EXECUTE- PENDING-TASKS meant to treat a NETWORK-ERROR or FILE-ERROR as transient -- report it, sleep, carry on -- but %HANDLE-LOGGING-ERROR **returned** T, and a HANDLER-BIND handler that returns normally declines. The sleep happened and the error then reached the debugger, which parked the log daemon; it never came back, because TASK-QUEUE exports a kill and no public start. This is why the descriptor exhaustion above cost two log daemons. The handler now transfers control, invoking a RETRY-LOGGING restart bounded by *LOGGING-ERROR-RETRY-LIMIT* (10 per drain cycle, *LOGGING-ERROR-RETRY-INTERVAL* seconds apart) and an ABANDON-LOGGING restart when the budget is spent or the error is not transient. Fixed in both the file log and the stream notification log, which carried the same code. * CONNECTIONS REFUSED AT THE THRESHOLD WERE SILENT. They get no overload message and no access log entry by design, so the only evidence of exhaustion was the absence of the requests. NOTE-CONNECTION-REJECTED counts them in *NUMBER-OF-REJECTED-CONNECTIONS* and reports to the console at most once per *CONNECTION-REJECTION-REPORT-INTERVAL* seconds, under *REPORT-CONNECTION-REJECTIONS*. 1.12.3 (September 20, 2026) * NO CODE CHANGE. Cell 8 of the proxy matrix -- chained CONNECT through an upstream proxy, on both a plain and a TLS front -- had been SKIPPED on every SBCL run of 1.12.1 and 1.12.2, because it requires --chained and a second CL-HTTP image to act as the upstream. Both of those entries nonetheless reported "104/104", which is LispWorks's figure: it was carried across without checking, and the verified SBCL count was 102. Cell 8 has now been run against the 1.12.2 build, with the LispWorks image on port 8000 as the upstream proxy and *STANDARD-PROXY* pointed at it: Cell8 GET /get (chained CONNECT, plain front) 200, 255 bytes Cell8 GET /get (chained CONNECT, TLS front) 200, 255 bytes SBCL chained totals: PASS=39 FAIL=0 SKIP=0 So the full matrix on SBCL is 21 + 39 + 42 + 2 = 104, and the earlier entries' figure is now true -- but it was not when they were written. This release exists to say so rather than to quietly amend them. 1.12.2 (September 20, 2026) * ERROR-SWALLOWING SOCKET TEARDOWNS ARE ONE FUNCTION. Twenty-two call sites across six files each wrapped the same SB-BSD-SOCKETS:SOCKET-CLOSE in their own IGNORE-ERRORS or HANDLER-CASE ... NIL. IPC:%CLOSE-SOCKET-QUIETLY replaces all of them, so the one place in the port that discards a condition is the one place to audit. It catches SERIOUS-CONDITION rather than using IGNORE-ERRORS, which would also swallow a warning and leaves nothing to grep for, and its docstring records why a close in a cleanup is the narrow case the no-IGNORE-ERRORS rule admits. * TWO DISPATCH TABLES ANSWERED ONE QUESTION. MAP-SOCKET-ERROR held a fifteen-branch TYPECASE over SBCL condition classes beside GET-TCP-ERROR-CLASS, an errno table saying the same things. Every SB-BSD-SOCKETS:SOCKET-ERROR subclass carries the errno, so six of those branches -- refused, address-in-use, network-unreachable, not-connected, operation-timeout, no-buffers, interrupted -- were re-deriving from a condition's class what its own slot already said. They now go through the errno table. The branches that remain are the conditions that carry no errno: the NAME-SERVICE-ERRORs of DNS, SB-EXT:TIMEOUT, CLOSED-STREAM-ERROR, out-of-memory, pure-tls, and the fallback. * THE ERRNO TABLE WAS DARWIN-ONLY, AND IS NOW THE PLATFORM'S. Its twelve values were hand- written DEFCONSTANTs under a comment reading "Darwin errno values for network errors", and they were exactly that: ECONNRESET 54 and ETIMEDOUT 60 are the BSD numbers where Linux says 104 and 110. On Linux the table read a reset connection as an unrelated errno and fell through to a generic network error -- and with the consolidation above, that table is now the only thing standing between a socket error and its condition. The values come from SB-POSIX, which groveled them from the C headers when SBCL was built. SB-UNIX exports only EPIPE and EINTR of them; SB-POSIX has all thirteen. * ONE RETRY POLICY, AND IT IS BOUNDED. %BUFFER-FILL retried EAGAIN and EINTR by calling itself, which is recursion driven by the peer: a socket that stays unready returns EAGAIN as fast as the syscall can be made, one stack frame each time. It is a loop with a named budget, +BUFFER-FILL-MAX-RETRIES+. * NETWORK-PORT-IN-USE NO LONGER INVENTS A PORT. MAP-SOCKET-ERROR signalled it with :PORT 0, because it has no port to give -- its callers pass a context string. The slot now defaults to NIL, deliberately not 0, since a port number that is not the port is worse than an admission that it is unknown; only the code that attempted the bind supplies one. * PROXY SERVICE WAS ANNOUNCED ON PORTS WITH NO LISTENER. ENABLE-PROXY-SERVICE pushed the port onto *PROXY-SERVICE*, called ENABLE-HTTP-SERVICE, and logged "Proxy Service Enabled" unconditionally -- so a port already in use produced WARNING: Network port 8000 is already in use -- cannot start the HTTP listener. HTTP Proxy Service Enabled on port 8000 for host. one line after the other, and left *PROXY-SERVICE* naming a port nothing could arrive on. This is the sibling, in portable code, of the service registration fixed in SBCL 1.12.1. It now confirms the listener came up and retracts the claim when it did not. * VERIFIED BY A COLD COMPILE, 0 caught conditions, and the matrix on SBCL 2.6.8: server 21/21, proxy matrix 37/37 warm, client matrix 42/42, in-image cells 5b and 6b both pass. Cell 6 fails on the first run against a freshly started image and passes warm, as before. CORRECTION, entered with 1.12.3: this entry first read "104/104" and cell 8 was SKIPPED on every run above, so the verified count was 102. Cell 8 was run separately against this same build and passes; see 1.12.3. 1.12.1 (September 20, 2026) * A FAILED BIND LEFT THE SERVICE REGISTERED, ANNOUNCED, AND LISTENING ON NOTHING. The bind ran inside the listener thread, so its result could not gate the registration that had already happened: %START-LISTENING-FOR-CONNECTIONS set SERVICE-PROCESS, pushed the port onto LISTENING-ON-HTTP-PORTS and called REPORT-SERVICE-ENABLED before anything had tried to bind. A port already in use therefore produced HTTPS Service Enabled for: https://host:9443/ WARNING: Port 9443 is already in use -- cannot start HTTPS/H2 listener. in that order, and left *SERVICE-ALIST* holding a service with a live process and no server socket, so LISTENING-ON-HTTP-PORTS named a port nothing was listening on. A matrix run against such an image reads as a proxy defect when the origin never came up at all. The bind now happens in the caller's thread, before registration. %BIND-AND-LISTEN-ON-PORT signals NETWORK-PORT-IN-USE, which is what its docstring always claimed -- it had been warning and returning NIL with a condition object the caller discarded. The three accept loops (plain, SSL, and the ALPN redefinition in SBCL;SERVER;HTTP2.LISP) take the pre-bound socket. A new %BIND-LISTENER-OR-REPORT binds, stores the socket on the service, and returns NIL on a busy port, so one unavailable port still does not abort the other services -- but nothing is registered, announced, or reported as listening. * EAGAIN WAS TWO BARE LITERALS, AND THEY WERE THE BSD PAIR. %BUFFER-FILL tested errno against 35 and 11 by hand, and 4 for EINTR, while the same file used SB-UNIX:EAGAIN correctly elsewhere. SB-UNIX supplies these per platform, and EWOULDBLOCK is a distinct value on some, so a Linux EAGAIN could be read as a hard error on a BSD build and the reverse. All three now use the constants, and EWOULDBLOCK is tested alongside EAGAIN. * CONDITION REPORTS ARE NAMED FUNCTIONS, not inline lambdas. Eleven :REPORT lambdas across TCP-STREAM.LISP and CONDITIONS-EARLY.LISP become named reporters, which can be traced and redefined on their own; RESOLVER-ERROR and DOMAIN-RESOLVER-ERROR printed identically and now share one. NETWORK-PORT-IN-USE also gains a PROTOCOL-NAME slot, so its report names the listener that could not start instead of needing a separate warning to carry it. * AN SBCL INTERNAL WAS NAMED IN PORTABLE CODE. W3P;W3P-SYSTEM.LISP referred to SB-INT:QUASIQUOTE when picking apart a backquoted INHERIT-FROM. It now compares the symbol's name, so the portable tree no longer carries an implementation's internal symbol. The surrounding function remains the self-described kludge it has always been. * VERIFIED BY A COLD COMPILE AND THE COMPLETE TEST MATRIX, 104/104 on SBCL 2.6.8: server, 7 methods x {h2, https/1.1, http} 21/21 proxy matrix, cells 1-7 + chunking 37/37 warm client matrix C1-C6, 7 methods each 42/42 in-image proxy cells 5b and 6b both pass Cell 6 fails on the first run against a freshly started image and passes on every warm re-run, as it has since before these changes. CORRECTION, entered with 1.12.3: this entry first read "104/104", which was LispWorks's figure carried across without checking. Cell 8, chained CONNECT, was SKIPPED on every run above -- it needs --chained and a second image as the upstream proxy. The verified count here is 102. Cell 8 was run separately and passes; see 1.12.3. 1.12.0 (September 18, 2026) * THE TLS AND HTTP/2 LIBRARIES ARE NOW THE CURRENT UPSTREAM RELEASES. pure-tls moves to 1.15.0 and Zellerin's http2 to the v2.0.5 line, which declares version 2.1. Both are taken from the CL-HTTP mirrors on dev.cl-http.com, and the other third-party mirrors were swept to their upstream heads at the same time. mgl-pax is deliberately held at f7f9414: later revisions require dref and autoload, which http2/core depends on, so moving it disables HTTP/2 altogether. pure-tls 1.15.0 carries every patch this port had been applying, so all seven are retired and the loader no longer gates on them: the PSK server-side resumption fix, the PSK client binder fix, and the five that followed, including pure-tls-stream-listen. A port that still carries a patches directory should delete it. PSK session resumption was re-verified end to end against our own server on the stock library -- accepted at index 0, certificate skipped, the fetch completing on the resumed session. * THREE HTTP/2 DEFECTS, ALL FOUND BY RUNNING THE FULL METHOD MATRIX OVER h2. o The reactor wrote RST_STREAM CANCEL wherever an abort was queued, discarding the error code the caller asked for. The abort command now carries its code and the reactor honours it. o An error response on a body-bearing method arrived EMPTY: the cleanup RST_STREAM went out ahead of the body flush, so the peer saw the reset before the entity. ABORT-HTTP2-STREAM now only marks the stream, and the reset is sent after END_STREAM. o PUT OVER h2 TO A FILE returned 500. STREAM-COPY-BYTES specialized on the H2 source alone outranks the portable (T PATHNAME) method -- CLOS orders on argument 1 first -- so a pathname reached WRITE-SEQUENCE. Both ports gained (HTTP2-RESPONSE-STREAM PATHNAME) and (... STRING) methods. * CL-HTTP NO LONGER GENERATES obs-fold. A long comma-separated header was wrapped onto continuation lines, which RFC 7230 section 3.2.4 deprecated and RFC 9112 section 5.2 forbids a sender to produce. Modern intermediaries reject it: a two-entry Via header through a chained proxy drew a 400 from nghttpx. Folding is gone from PRINT-COMMA-SEPARATED-HEADER and -PLIST, and with it *HEADER-FILL-COLUMN* and the optional fill-column arguments. Headers go out on one line. * THE BUILD REPORTS ITS FAILURES INSTEAD OF ANNOUNCING SUCCESS OVER THEM. start.lisp printed its banner unconditionally, so a system that failed to compile was invisible unless you read the whole log. pre-cl-http.lisp now records each failure with RECORD-BUILD-FAILURE, and start.lisp prints "CL-HTTP BUILD INCOMPLETE -- n FAILURES" with each context when BUILD-FAILURES is non-empty. 1.11.24 (September 2, 2026) * DYNAMIC FORMS COUNTED A FIELD THAT WAS NOT ITS OWN AS A PARSE FAILURE, and so refused to run the form's response function. A page may post anything a client sends: a sibling form's submit button, a stale tab, a request made by hand. Such a field came back from ACCEPT-QUERY-ALIST as :WRONG-FORM or :WRONG-COMMAND-INTERFACE and was collected alongside the values that genuinely failed to parse, so %EXECUTE-FORM-RESPONSE saw a non-empty PARSE-FAILURES, skipped the response function and called RETRY-FAILED-QUERIES -- which, having no retry queries to flag, re-presented the whole form. Those two statuses are now returned separately, as a fifth value FOREIGN-QUERIES, and no longer gate the response. A query of the form's own that fails to parse still does, so a response function is still never handed NIL where a value was expected. This is what broke the Symbolics licence editor's Delete button. Its form carries three hidden fields and a submit button named DELETE; the button resolved to a query in another command interface, and deleting an application silently became a redisplay of the editor. * A FORM'S PAGES NOW CARRY THE APPLICATION'S DOCUMENT LOOK. DEFINE-FORM takes :HTML-DOCUMENT-LOOK, held on HTML-FORM-MIXIN and read when the page is written rather than captured at definition time, so the form, the retry after a query it could not accept, and the confirmation are all written in the look the application uses. A retry had been arriving in the default look, without the site style sheet, and read as a different application from the page it came from. 1.11.23 (August 25, 2026) * THE COOKIE HEADER LIST WAS DECLARED DYNAMIC-EXTENT AND OUTLIVES ITS FRAME, which broke the console outright on Genera as soon as 3.8.22 started handing out the cookie. The page had been written (let ((cookie-headers (set-cookie-http-headers (...)))) (declare (dynamic-extent cookie-headers)) (with-conditional-get-response (stream :html ... :additional-headers cookie-headers) ...)) and the list does not stay inside that LET: it is handed to the response machinery, and on Genera the response is written from a character-encoding CONTINUATION -- a closure the stream calls after the declaring frame is gone. The stack storage is reused by then, so what reached WRITE-HEADERS was the debris of the list, the bare keyword :SET-COOKIE, and every request for the console answered 500 with The first argument to the ENDP instruction, :SET-COOKIE, was not a list The declaration had been there since the page was written and had never fired, because SET-COOKIE-HTTP-HEADERS returned NIL for any client its user-agent table did not recognise -- so on Genera the list was empty and there was nothing to corrupt. Making the cookie unconditional in 3.8.22 turned a latent stack-lifetime bug into a broken console. The same declaration stood over the log window's frameset, where it had not fired for the same reason, and is gone from both. LispWorks and SBCL never showed it. Their DYNAMIC-EXTENT is advisory enough here that the list survives being read after its frame; Genera's is not, and Genera's is the one that is right. A value handed to :ADDITIONAL-HEADERS escapes -- it may not be stack-allocated. 1.11.22 (August 25, 2026) * SECURITY: THE W3P CONSOLE'S WEBSOCKET ACCEPTED SESSIONS WITHOUT THE COOKIE IT REQUIRES. Any site that exported the console with 3.8.21 or 3.8.20 should take this release, and should assume that anyone who could reach the session URL could open a console on it -- which is to say start the server, stop it, kill processes, and evaluate arbitrary forms. A WebSocket cannot be challenged: the browser opens it by script, may set no header on it, and has nowhere to prompt for a password on a connection it opened rather than navigated to. So EXPORT-W3P-CONSOLE takes the realm off the session URL and the page mints a cookie instead, which the session is supposed to demand -- the arrangement examples;log-window makes for its SSE streams. W3P-CONSOLE-AUTHENTICATED-P demanded it like this: (cond ((null (authentication-realm url)) t) ; url = the URL being served (t (with-cookie-values ((w3p-console-session)) ...))) The URL being served, on that handshake, IS the session -- the one whose realm had just been stripped. So the test found no realm, took the first clause, and admitted every caller on every server that has ever run it. It went unseen because on a development console, where no realm is set anywhere, T is the right answer and every test passed. Measured against a public server before the fix: the console page answered 401 with a Digest challenge, and a WebSocket opened on the same host carrying no cookie and no credentials was handed a working console. The guard is now examples;log-window's %LOG-WINDOW-VALID-COOKIE-P with the console's two names in it -- the cookie, always, with nothing asked about the export -- and a cookie bearing the right timestamp and a forged digest is refused, the HMAC being checked and not merely the cookie's presence. The places that can undo this now say so: the function that strips the realm, the response function's first COND clause, EXPORT-W3P-CONSOLE's account of what protects each of its three URLs, and the corresponding spot in log-window.lisp, which has the same shape and was the implementation this was meant to copy. * SET-COOKIE-HTTP-HEADERS SETS THE COOKIE WHATEVER THE CLIENT CALLS ITSELF. It wrapped the whole header list in (WHEN (USER-AGENT-CAPABILITY-P :COOKIES ...)) -- a table written when some browsers did not keep cookies, and one with no entry for a client written since. A client the table did not recognise was silently given no cookie: curl got none where Chrome got one, from the same page, and an application handing out a cookie could not tell a client that refused one from a client the table had never heard of. That mattered here because a cookie is how this server authenticates a connection the browser opens by script. A page that sets no cookie leaves such a client no way in at all, and leaves whoever wrote it to find that out by measurement. Portable: every port gets it. * The console's test suite now gets in the way a browser gets in, fetching the page and carrying the cookie it sets, so it exercises the guard instead of depending on the guard being open. A suite that connects without a cookie can only pass against a broken console. 1.11.21 (August 25, 2026) * A SPECIAL WAS READ ABOVE ITS DECLARATION, and only Genera said so. The comma aside added in the last release evaluates in *CONSOLE-LISTENER-PACKAGE*, and it sits eight hundred lines above the DEFPARAMETER that declares it. LispWorks and SBCL defer an undefined- variable warning to the end of the compilation unit, by which time the declaration has been seen, so both compiled the file without a word; Genera reports it where it happens -- For Function (METHOD CONSOLE-EVALUATE-ASIDE (CONSOLE T)) While compiling *CONSOLE-LISTENER-PACKAGE*: The variable *CONSOLE-LISTENER-PACKAGE* is unknown and has been assumed SPECIAL -- and is right to. The declaration and the initial activity beside it now live with the console's other variables, ahead of everything that reads them. Nothing else moved. 1.11.20 (August 25, 2026) * THE CONSOLE COMPLETES COMMAND NAMES, on the three keys a Lisp Machine used for it: space completes what names one command, c-? lists what may follow what has been typed, and c-/ finds a command by a word anywhere in its name. A command table is named verb-first -- Show Processes, Describe Process, Kill Process -- so somebody who knows they want to do something to a process has nothing to type that any prefix action will match. That is what c-/ is for: it is Zmacs' Apropos rather than its Complete, and the two are not the same question asked twice. The completion is done in the server and not in the browser. The candidate set is the activity's command table and the matcher is W3P's, so completing in the browser would mean a second matcher, written in another language, that has to agree with this one. What matched arrives as PRESENTATIONS, so the answer to a question about what begins with Show is a row of commands you can click rather than a row of words you must retype. W3P gained COMPLETE-FROM-POSSIBILITIES for this: CLIM's function of that name, with CLIM's four actions and one addition, :APROPOS. A comma at the prompt reads a form in any activity and a colon names a command, for the lines that are neither. * SPACE COMPLETES ONLY WHAT TYPING CAN FINISH. Half the console's commands want an object off the screen -- a URL, a process, a translation method -- and completing to one of those puts a person at a prompt their keyboard cannot answer: Show URLs asks for a translation method, and on the screen where you typed it there may not be one to name. A completion that leads somewhere you cannot go is worse than no completion, because it also took away what you had typed. The two list keys still show them, and still show them as things to click. Which types come off the screen is declared once, in *CONSOLE-SCREEN-OBJECT-TYPES*, rather than marked on every command that takes one: it is a fact about the type, so a command added tomorrow that takes a PROCESS is understood without being marked. * AN ASIDE PRESENTS ITS VALUES. A comma at any activity's prompt evaluates a form in the listener's package and writes the answer into the transcript, which is the Genera command processor's comma and the reason it earns a key of its own. It was calling a function that does not exist in this image, so every aside answered with an undefined-function report instead. The values are presented as expressions now, the same as the Lisp Listener presents them, so an object an aside asks for is one you can go on to use. * A DIRECTORY'S TWIST MARKER IS A TRIANGLE, pointing right at a name whose contents are folded away behind it and down at contents spread out below. It says what every file browser and every disclosure widget says, so it needs neither legend nor explaining. The glyph is written as a numeric character reference -- ASCII in the source, a triangle in the browser -- and Genera keeps the +/- pair Zmacs uses: its character set is Latin-1, and a glyph it has no character for is not one it should be putting on a page. * THE CL-HTTP MANUAL TAB APPEARS ONLY WHEN THERE IS A MANUAL. A production server has every reason not to export its own documentation, and a tab that leads to a 404 is the console making a promise the server will not keep. The console asks with a HEAD request rather than by looking in the URL table, because what has to be true is that the manual can be FETCHED -- exported, redirected somewhere that exists, and handed over -- and a table lookup answers only the first of those. 401 counts as there, since the browser carries credentials this client does not. The answer is remembered for the session, because the activity bar is redrawn on every activity change. A site that serves no documentation of its own can set *CONSOLE-MANUAL-URL* to a manual that does, http://www.cl-http.org:8000/cl-http/frame.html being the public one. An activity's :SELECTABLE now takes a function as well as T and NIL, called with *CONSOLE* bound as an entry function is, for the activities that are only worth offering sometimes. * DEFINE-PRESENTATION-METHOD DECLARES ITS DISPATCH PARAMETERS IGNORABLE rather than reading them. Every one of the 198 presentation methods in the tree carried two no-op variable references, emitted by the macro to keep the parameters used; the only author who ever saw the consequence was the one who declared (IGNORE TYPE) and was then told the variable was read -- a warning that was the macro's doing and that appeared at the caller. A second consequence was latent: because the reference preceded the body, a method with an empty body returned the type where it meant to return NIL. 1.11.19 (August 23, 2026) * A PARKED PROCESS'S RESTARTS ARE CLICKABLE. The W3P console could break into a running process, show what stopped it and let you walk its stack, and then listed its restarts as plain text -- so the one thing the walk was for, choosing a way out, had to be done by another route. A restart object cannot leave the process it belongs to, since invoking one transfers control on that process's stack; but it can be invoked from here by asking, and the process debug protocol has always accepted (:INVOKE-RESTART n). They are presentations now, and a Take Restart command takes one as its first argument -- which is what makes them mouse sensitive, by the same presentation-to-command rule that makes frames and URLs clickable. ABORT is covered by the same change. * THE PROCESS HEADING IS RANGED LEFT in the process listing, where the other headings are centred over their columns. That column is wide because some process somewhere has a long name, while the names under it are short and start at the left edge, so a centred heading sat nearer the next column than to anything it named. 1.11.18 (August 23, 2026) * A FRAME YOU CAN RETURN FROM. A restart is a place the program offered to resume from; these are the two it did not offer and a debugger can synthesize anyway -- return a value from a frame as though the call had produced it, and call the frame's function again on the arguments it already has. FRAME-RESUMABLE-P, FRAME-RETURN and FRAME-RETRY join the per-frame surface, and the W3P console offers them above the restarts when the frame can take them. SBCL performs them, on SB-DEBUG:UNWIND-TO-FRAME-AND-CALL with SB-DEBUG:FRAME-HAS-DEBUG-TAG-P as the gate -- the mechanism its own RETURN and RESTART-FRAME debugger commands use. Since FRAME-RESUMABLE-P is asked before anything is offered, a frame compiled without the tag shows nothing rather than a menu of refusals. LispWorks and Genera decline for now and each says which kind of declining it is: LispWorks has DBG::IN-RETURN-FROM-FRAME but its four arguments are undocumented and drive an unwind of a live stack, and Genera has DEBUGGER:RETURN-FROM-FRAME and simply wants the method written on a machine somebody is watching. * THE CONSOLE'S PROCESS LISTING IS PEEK'S -- name, state, priority, idle, and percent of a processor, with the numbers ranged right and the headings centred over their columns. State sits next to the name because it is the column you read. The State column is MEASURED rather than guessed: it is as wide as the longest state in the listing being drawn, which comes out 30 on LispWorks, where a process can be "Running (inside foreign code)", and 24 on SBCL. The width and the row are computed by one function, so they cannot disagree. Idle is in sixtieths of a second -- Genera's unit, which the other ports convert to -- and is shown as seconds, then M:SS, then H:MM:SS. Values too long for their column are truncated rather than allowed to push the row out of line. The headings are bold and underlined and DELIBERATELY THE SAME SIZE as the rows. The listing lines up because every character occupies one cell, so a heading in a larger font does not line up with the column it heads: measured at 9.392px per character against the rows' 7.827px, which put the headings 69px right of their own columns. * TWO WAITS NOW SAY WHAT THEY ARE WAITING FOR. A mailbox wait is a "Message Wait" on both ports; unnamed, LispWorks had been reporting "Waiting for message in #", an object printed into a column. And a pooled HTTP worker parked for work no longer calls itself "Run" on SBCL -- every idle worker had been showing as busy -- but names its wait, as the LispWorks port already did. LispWorks' wording is now "Waiting for regeneration". 1.11.17 (August 23, 2026) * THE BACKTRACE DETAIL LEVEL WAS BEING THROWN AWAY. OUTPUT-BACKTRACE took VERBOSE as an &OPTIONAL argument and then IGNOREd it, so :QUICK, :BRIEF, :VERBOSE and :BUG-FORM all printed the same fifty frames. Every caller was choosing a level and none of the choices did anything. Genera is the model: its OUTPUT-BACKTRACE takes VERBOSE as a REQUIRED argument and maps it to a frame count, so the same counts are used here and a backtrace asked for at a given level is the same length on either port. What this port adds is how much it says about each frame, since SB-DEBUG:PRINT-BACKTRACE can name a method frame minimally or in full and can print the source form the frame is executing. The argument is required now, which also retires a style warning this file has carried for as long as it has existed: &OPTIONAL and &KEY in one lambda list. Measured through the listener's own CAPTURE-BACKTRACE-STRING: 13 / 20 / 29 lines for :QUICK / :BRIEF / :VERBOSE, where before there were three identical answers. * AN LMACS ENTRY CAN BE REPLACED AND DELETED. LMACS could append an entry, insert one, move one and pop the LAST one, and that was all. With no way to remove an interior entry there was no way to replace one either: editing a definition inside a loaded file meant append / move / move / pop, four operations whose only purpose was to work an entry around to the end where POP could reach it. LMACS_ENTRY_REPLACE replaces the whole form of an entry, keeping the entry, its position and its annotation unless a new one is given. This is the operation LMACS_SEXP_CHANGE cannot express: that one names a SUBexpression by a non-empty path, and the path that would name the entire form is the empty one, which reads as no path at all. LMACS_ENTRY_DELETE removes an entry by index -- the inverse of LMACS_ENTRY_INSERT, and the general case of LMACS_ENTRY_POP, which is now that same operation asked for the last entry rather than a second copy of it. Both are thin, because BUFFER-ENTRY-REPLACE and BUFFER-ENTRY-REMOVE were already there: exported generics that record undo, check the buffer's declared character set and mark it modified. Note that a replaced form has no verbatim source text any more, so it is printed afresh when the buffer is written -- captured comments survive, deliberate line breaks do not, and the guide says so. * THE DEVELOPMENT GUIDE HAD DRIFTED BY SIXTEEN TOOLS, found by comparing what it names against tools/list on all three ports rather than by reading it. Four were missing from the general tools -- LISP_PROCESS_FRAME and its two movement tools, which are what make process debugging a walk rather than a snapshot, plus Genera's LISP_PREVIOUS_DEFINITION. Twelve were missing from the listener tools: the entire multi-agent subsystem -- roles, messaging, transactions with symbol locks and rollback, and redefinition tracking -- which shipped in March and was never written down. LMACS_REVERT_BUFFER had never been documented at all. Every heading now counts what its table lists, and the whole guide reconciles against SBCL, LispWorks and Genera at once: nothing live is undocumented on any port, and nothing documented fails to exist. 1.11.16 (August 22, 2026) * AN ARGUMENT IS NOT A LOCAL, AND EACH PORT ALREADY KNEW WHICH WAS WHICH. FRAME-LOCALS answered every variable a frame held in one undifferentiated alist, printed as NAME = VALUE, which throws away something all three Lisps record: what the caller passed, in the order it passed it. FRAME-ARGUMENTS is a separate operator now, FRAME-LOCALS answers what is left, and a frame reads Arg 1: X : 5 Local 1: SUM : (1 2 3) Genera is the model, since it keeps the two apart in the frame itself: DBG:LFRAME-ARGLIST names the arguments and DBG:FRAME-ARG-VALUE reads them. The other two ports recover the distinction from the compiled code. SBCL uses SB-DI:DEBUG-FUN-LAMBDA-LIST, which answers the lambda list in terms of the very debug variables the frame holds -- no matching by name, so it is right for an FLET or a method, and FRAME-LOCALS then excludes the arguments by identity rather than by name. LispWorks uses DBG::CALL-FRAME-ARGLIST, whose answer carries LispWorks' own markers on the front, each taking one value: (:INVISIBLEP T &REST ARGS) for the interpreter's apply, and (:ALIAS CAR LOW64::X) for CAR. A marker names nothing, and reading one as a variable answers :UNAVAILABLE. Both come off with one loop. * A DEBUG LEVEL OPENS WHERE THE MISTAKE IS, not on frame 0. Frame 0 is where the condition was raised, and that is almost never where the mistake is: typing (CAR 5) puts the whole condition system between you and CAR. FRAME-INTERESTING-P steps over it. It is a HEURISTIC on every port and is documented as one -- the package the running function's name lives in, plus the six functions that ARE the act of signalling. Being wrong costs a keystroke, since the whole stack is still listed and C-P moves inward. Genera's debugger knows the real answer, DBG:INNERMOST-INTERESTING-FRAME, and adopting it is the next thing to do there. * THE CONSOLE'S DEBUGGER IS ONE YOU STAND IN A FRAME OF. It listed a backtrace and printed a frame you clicked; that is a listing. It opens in a frame now -- the error, then the current frame with its arguments, its locals and its restarts, then the backtrace under that. C-N moves toward the caller and C-P back, C-U with a number moves that many, and clicking the open frame closes it. One frame open at a time. THE RESTARTS BELONG TO THE FRAME rather than to the bottom of the window, which is what makes room for the restarts worth having later: return from this frame, retry it, set an argument and retry. None of those mean anything except with respect to a frame you are standing in. A REGION is the protocol piece this needed. The current frame sits above the backtrace inside a scroll that also holds the session's history, so redrawing the pane to show a different frame would rewrite history that is not changing -- and renumber every presentation in it, moving the identifiers out from under the mouse. W3P.register('region') replaces one named node, and the backtrace identifiers were measured unchanged across every movement and every open and close. * THE PROCESS PANE AND THE LOG STATISTICS KEEP THEMSELVES CURRENT, five seconds by default and Set Update Interval to change it. A pane showing a process's state is a pane that is wrong the moment it is drawn. One watcher, on the lifetime rules the log window's already had: it asks each time whether the console is still here, whether a newer watcher has taken over, and whether the connection is open. 1.11.15 (August 21, 2026) * AN HTTP/2 STREAM RESET NO LONGER STRANDS THE REQUEST HANDLER. The streaming inbound body learned END_STREAM and nothing else, so a peer that reset the stream mid-upload, or a connection that died, ran into the library default and the body stream was never told. The handler thread, blocked in READ-SEQUENCE on a condition variable, was woken later by pool cleanup with a phantom EOF: it parsed half a body as a complete request and wrote its answer into a dead stream -- the empty 200s with no bytes that appeared when Safari abandoned a large upload over its one multiplexed connection. %ABORT-BODY sets an aborted flag, so a blocked reader signals WWW-UTILS:CONNECTION-CLOSED once past the buffered bytes instead of returning :EOF, and half a body can never parse as a whole one. The PEER-RESETS-STREAM :BEFORE method and the reactor's connection teardown call it for every live body stream. A late abort after a real END_STREAM is ignored: a request that was fully received must not be spoiled by a reset arriving behind it. The method that calls it is portable and was written for the LispWorks port, which had the other two thirds; this port had the class it names and neither the flag nor the function, so the call was to something undefined and a reset was worse here than it had been before. Now both ports carry the same three parts. * A STACK YOU CAN WALK IN ANOTHER PROCESS, ON EVERY PORT. LISP_PROCESS_BREAK existed and was Genera-only, and its file said the ports had no per-frame evaluation surface. That was backwards: SBCL exports a complete frame interface in SB-DI, LispWorks has one under the DBG internals its own IDE walks stacks with, and Genera -- the port the file named as having none -- has one as well: SYS:MAP-OVER-FRAMES-IN-STACK walks the stack, SYS:FRAME-FUNCTION says what is running in a frame, and DBG:LFRAME-ARGLIST, DBG:FRAME-ARG-VALUE and DBG:FRAME-LOCAL-VALUE name and read that frame's own variables. Five operators, one definition per port, in the compatibility file that already exists for it: WITH-STACK-FRAMES, CAPTURE-STACK-FRAMES, FRAME-NAME, FRAME-EVAL-FORM and FRAME-LOCALS. Each file is compiled only on its own port, so there is not a reader conditional anywhere in them. What Genera does not have is a form evaluator that takes a frame: its debugger evaluates what you type in the error environment, through DBG:EVAL-IN-ERROR-ENVIRONMENT, and reads a frame through the accessors above. FRAME-EVAL-FORM there binds the frame's own variables around EVAL, which reaches that context by the road Genera offers. A Genera frame is a pointer into a live stack rather than an object, so CAPTURE-STACK-FRAMES starts collecting at its own caller: the frames of the walk return the moment it does, and reading one afterwards signals that the pointer is not a frame. A frame is a view of a GRABBED stack on LispWorks and means nothing outside the grab, which is what WITH-STACK-FRAMES is for and why the break hook runs its whole command loop inside one. What the break itself pushed is dropped and what the Lisp pushed is not: the signal delivery frames between a sleeping thread and its handler are really on its stack, where that path ends is not something a portable rule can know, and a guess that trimmed one frame too many would hide the frame you were looking for. LISP_PROCESS_BACKTRACE now answers numbered frames, and those numbers are the ones LISP_PROCESS_FRAME, its two movement tools and LISP_PROCESS_EVAL_IN_FRAME take. Evaluation happens in the frame's LEXICAL context, so that frame's arguments and variables are visible by name, and the frame argument defaults to wherever up and down have arrived. * THE W3P CONSOLE DEBUGS A PARKED PROCESS. Debug Process showed a photograph: it interrupted the process, took its backtrace and let it run on. It parks the process now, and Release Process lets it go -- so the stack does not move while you read it, the frames are still live, and Evaluate in Frame evaluates in that process's own lexical context. A console can be looking at its own debug level and at a parked process at once, and the two are not alike underneath: this console's frames are HERE and present their locals as objects you can describe and put on the kill ring, while a parked process's answer in TEXT, because what crosses between processes is text and a value that stayed behind cannot be clicked. So the frame operations are generic functions over the two rather than a conditional in each command, and each frame presentation carries its own stack -- a click means the frame you clicked and never the frame of that number in the other one. * THE CONSOLE'S INPUT IS MULTI-LINE AND TAKES EMACS KEYS. Enter sends what is BALANCED and continues what is not, counting parens the way the reader would: skipping strings, skipping what a backslash quotes, stopping a comment at its line. Twenty-eight keys, motion by SEXP among them, and a kill ring shared with the presentations so that c-y brings back whichever kind of thing you last killed. They are bound rather than left to the browser because Cocoa answers most of them in a text field and X11 and Windows answer none. Meta is read from the key's CODE and not from the character it produced. Option-f on macOS produces the character f-with-hook, so a binding written against the character matches nothing there -- which is how this console's m-w had been broken since it shipped, on the platform it was written on. * SPELLCHECK AND AUTOCOMPLETE FOR ANY HTML5 INPUT TYPE. WRITE-STANDARD-INPUT-TYPE-ARGS knows a vocabulary of standard arguments and writes the ones an input type asks for, and that vocabulary was the HTML4 core set -- so an input type wanting an HTML5 global attribute had to write its own tag, which is what a generator exists to stop anybody doing. Both use writers that were already here, and MULTI-LINE-TEXT asks for them. Additive: an argument absent from an input type's bindings list is not written. * THE LOG WINDOW PUTS BACK WHAT IT BORROWED. Activities have an :EXIT beside their :ENTRY now, run on the way out, and the log window's drops the watcher and clears both panes -- neither held a record, and a live display that has stopped being maintained must not stay on the screen saying otherwise. Find URL calls the server's own FIND-URL rather than walking the URL table again, which is what keeps one application's URLs out of another's answer, and a CL-HTTP Manual activity opens the documentation in a tab of its own. 1.11.14 (August 20, 2026) * A CLIENT SSL CONTROL MAY DECLINE TO BE A DEFAULT. DEFINE-CLIENT-SSL-CONTROL has documented SET-DEFAULT as ":CLIENT, :PROXY, or :NONE" since 2006, and :NONE could never work: it reached SET-STANDARD-SSL-CONTROL as that generic's CASE argument, whose ECASE admits only the other two. The (EQL :NONE) method beside it looks like the answer and is not -- it dispatches on the CONTROL and CLEARS an existing default, which is a different operation from declining to set one. Guarded at the call, so the generic's contract is unchanged. No CHECK-TYPE was added: the ECASE already refuses anything else. * THE HTTP/2 CLIENT POOL KEEPS ONE CONNECTION PER ORIGIN, AND LOSES NONE. Two defects. A connection that died: %GET-H2-CLIENT-CONNECTION validates what it hands back, but a check made before the act answers a question about an earlier instant, and a peer that departs in the gap leaves a connection that passes and then never answers. An ordinary request has always recovered -- %DISPATCH-WITH-H2-CLIENT unregisters and reopens -- while a WebSocket had no recovery at all, so the dead entry stayed in the pool and every later session to that origin met it in turn. %WEBSOCKET-H2-OPEN-SESSION now retries once. Connections opened all at once: sixty-four concurrent sessions to a cold origin left SIXTY-FOUR connections open against a pool holding one. Registration was a SETF, so the last arrival won and the rest were dropped while still connected, each holding a reactor thread and a socket at both ends. Registration is now register-if-absent and reports the incumbent; %ADOPT-H2-CLIENT-CONNECTION disposes of the redundant one. The race is allowed rather than prevented, since making the miss and the open one act would serialize every open to every origin, including those that speak only HTTP/1.1. Measured: the same burst adds sixty-four reactor threads before and ONE after. * %CLOSE-H2-CLIENT-CONNECTIONS shields its shutdown with HANDLER-CASE over SERIOUS-CONDITION rather than IGNORE-ERRORS, which is what the LispWorks port already did. The two now read alike. * Third-party evidence for the HTTP/2 WebSocket path, which had none: Chrome 151 opens a session against this server by RFC 8441 Extended CONNECT, and Firefox 153 takes the RFC 6455 upgrade over a separate connection while holding HTTP/2 for the page. Both correct, and the second is a reminder that the upgrade path is not legacy. 1.11.13 (August 16, 2026) * A FAILING WEBSOCKET SESSION NOW CLOSES 1011 instead of writing an HTTP 500 onto the upgraded socket. A response function that signalled sent its peer a status line, headers and an HTML body down a stream that stopped being HTTP at the 101 -- frame garbage, where RFC 6455 section 7.4.1 has provided 1011 all along. Both reporting paths are guarded: REPORT-STATUS, which covers a 404 signalled inside a session as readily as a 500, and REPORT-STATUS-UNHANDLED-ERROR, the last resort %PROVIDE-SERVICE funnels into and where the 500 actually came from. The close code dispatches on the condition through the new FAIL-WEBSOCKET-SESSION rather than a TYPECASE, so a WEBSOCKET-ERROR keeps the code it was signalled with -- 1003, 1009 -- and everything else earns 1011. * *CHARACTER-CODE-POINT-LIMIT* is exported from HTTP. The manual documents it beside the WebSocket parameters, every one of which is external, and it was not -- so a reader following the manual got a package error rather than the ceiling. * Nineteen new checks cover the ceiling and the ACCEPT-CHARSET negotiation, which had shipped with none. 733 across the six WebSocket suites, 0 failures. 1.11.12 (August 15, 2026) * WEBSOCKET SESSIONS NEGOTIATE THEIR CHARACTER REPERTOIRE. Two changes, and on this port they change no behaviour at all -- both exist because a third port needed them, and both are the kind of thing that is wrong everywhere until one Lisp makes it visible. - *CHARACTER-CODE-POINT-LIMIT*, new in server;variables.lisp, is one past the largest code point this Lisp's characters can hold. It defaults to CHAR-CODE-LIMIT, which is exactly right wherever CHAR-CODE is the code point, and WS-CHARSET-CODE-POINT-LIMIT now reads it instead of naming CHAR-CODE-LIMIT directly. A port whose range overstates what it represents sets its own in a substrate loading after variables.lisp; Genera answers 256. Above the ceiling a TEXT message earns WEBSOCKET-CHARSET-ERROR and a 1003 close rather than a character the application never received. - ACCEPT-CHARSET is now negotiated. A client declares what it can hold on both handshakes, RFC 6455 and RFC 8441 alike; a server narrows its endpoint's charset to the widest charset the peer said it accepts. It only ever narrows -- acceptance is not capability -- and it bounds only what we SEND, a request header describing what a peer reads and not what it writes, so refusing what cannot be represented on the way IN remains the ceiling's business. A quality of zero refuses one charset specifically, a wildcard imposes nothing, and a charset CL-HTTP does not model imposes nothing rather than refusing the handshake, which RFC 7231 section 5.3.3 permits. What made this visible was the first Autobahn run against Genera, where a server failed every non-ASCII TEXT message -- 66 section-6 failures against this port's none. Two of the three defects behind it could not have been found here. Verified unchanged on this port: 714 checks across the six WebSocket suites, and Autobahn at 272 OK with 24 section-9 refusals, exactly as before. 1.11.11 (August 15, 2026) * WebSockets load and run on Genera. Three defects, of which only the first is a code defect on this port -- the other two were invisible here and fatal there: - A frame is octets, and Genera streams are MODAL: writing an (unsigned-byte 8) vector to one in a character mode reaches TCP's :STRING-OUT, which CHECK-TYPEs the sequence as a string. %WS-WRITE-FRAME now writes inside WITH-BINARY-STREAM :OUTPUT and %WS-FILL-READ-BUFFER reads inside :INPUT. That macro expands to its body on this port, whose socket streams are bivalent, so this costs nothing here -- and that is precisely why no amount of testing here could have found it. - The WebSocket session lock was made with :TYPE :MULTIPROCESSING, a LispWorks MP keyword that is not one of the types WWW-UTILS:MAKE-LOCK defines. This port accepts it silently; Genera refuses and the load stops. Now :MULTIPLE-READER-SINGLE-WRITER, which is what its :READ and :WRITE call sites mean. - +WS-EMPTY-PAYLOAD+ is a DEFPARAMETER. A consed array is not a compile-time constant, as Genera says outright and the others let pass. * THE UTF-8 VALIDATOR MOVED FROM WWW-UTILS TO HTTP. UTF-8-VALIDATOR, MAKE-UTF-8-VALIDATOR, RESET-UTF-8-VALIDATOR, VALIDATE-UTF-8-BYTES and UTF-8-SEQUENCE-COMPLETE-P are now HTTP symbols, defined at the top of server;websockets.lisp; server;utf-8-validation.lisp is gone. RFC 6455 section 8.1 is its only caller and no port used it. Callers naming WWW-UTILS: explicitly need updating; code that inherits the symbols does not. * An HTTP/2 header set no longer carries :PROTOCOL back from the pool. The slot added for RFC 8441 was not cleared on recycle, so the next request handed that object began with a protocol it never sent: an ordinary CONNECT would be dispatched to the WebSocket path instead of opening a tunnel, and a plain GET at a WebSocket URL would be answered with a session rather than 426. Found by the new HTTP/2 suite on its second run in one image, which is the first time a header set comes back through the pool. 1.11.10 (August 15, 2026) * WebSockets over HTTP/2, RFC 8441. A session now opens by Extended CONNECT as well as by the RFC 6455 upgrade, on the server and in the client, and the two interoperate with the LispWorks port in both directions. An endpoint needs no changes: the same :WEBSOCKET export serves both transports, because an Extended CONNECT is dispatched as the GET section 5.1 calls it equivalent to and so travels the ordinary request path -- URL interning, virtual host context, authentication, access control, timeouts and logging. Only the handshake differs, and only the handshake is generic: WEBSOCKET-SESSION-REQUEST-P and WEBSOCKET-ACCEPT-HANDSHAKE dispatch on the stream, while WEBSOCKET-HANDLE-UPGRADE above them builds the connection once for every protocol. WEBSOCKET-CONNECT gained :HTTP-VERSION -- NIL negotiates, and offers Extended CONNECT only when ALPN chose h2 and the peer advertised SETTINGS_ENABLE_CONNECT_PROTOCOL, which RFC 8441 section 3 makes a precondition of asking rather than a hint. INCOMPATIBLE CHANGE: WEBSOCKET-H1-HANDLE-UPGRADE is now WEBSOCKET-HANDLE-UPGRADE. Behaviour is unchanged; callers of the old name need renaming. * HTTP/2 client requests no longer cost a second each. Measured against the same server in the same minute, an ordinary HTTP/2 GET took 1002 ms here against the LispWorks port's 52 ms. The reactor waited in PROCESS-WAIT, whose one-second timeout is documented as a safety net for events that do not call PROCESS-WAKEUP -- and inbound socket data is exactly such an event, since nothing in the image runs when the peer sends a frame. Outgoing commands were always prompt; it was every arriving response that waited for the net to expire. Each connection now carries a wake pipe and the reactor sleeps in poll(2) over the socket and that pipe together, so a command and a frame both wake it at once. Ordinary HTTP/2 GET 1002 ms -> 2-4 ms; WebSocket handshake 1048 ms -> 47 ms. * WebSocket messages over HTTP/2 no longer cost a second each way, on the server as well as the client. A second mechanism: the session thread waits in the portable STREAM-AWAIT-INPUT, which polls under the same one-second net, and nothing woke it when the reactor pushed body data. %AWAIT-STREAM-INPUT is the specialization that operator's own documentation asks for, with methods that wait on the body stream's condition variable -- which the reactor had always notified. Round trip, server side 1000 ms -> 0-21 ms; client receive 1003 ms -> 1 ms. HTTP/2 sessions now run at HTTP/1.1's latency. * An empty DATA frame no longer draws a zero WINDOW_UPDATE. APPLY-DATA-FRAME on a server stream sent the frame's payload size without checking it was positive, and a zero-length DATA frame is how a peer ends its half of a stream. RFC 7540 section 6.9 makes a zero increment a PROTOCOL_ERROR, so the peer tore down the whole connection, taking every other multiplexed stream with it. The client methods had always guarded this; the server's had not. 1.11.9 (August 14, 2026) * CONNECT tunnelling through an HTTPS proxy port works. It had never worked on this port: the client saw the tunnel established and then a TLS close_notify instead of the origin's ServerHello, so `curl -x https://proxy https://origin` failed while the same CONNECT through a plain proxy port succeeded. %STREAM-CHECK-EOF-NO-HANG treated a READABLE fd as end of file on an SSL stream. The reasoning held for the case it was written for -- an idle keep-alive connection has no pending bytes, so readable can only mean FIN, RST or an alert -- but a CONNECT tunnel is never idle. The instant the client sent the first byte of its inner TLS handshake the fd became readable, this reported EOF, LIVE-CONNECTION-P reported the connection dead, and TUNNEL-THROUGHPUT shut down a tunnel that was working. That is also why ordinary HTTPS forward proxying was unaffected: LIVE-CONNECTION-P is consulted between requests, where quiet really is expected. A readable fd is now asked what it holds. %FD-PEER-CLOSED-P peeks a single byte with MSG_PEEK, which does not consume it, and only a zero-length read -- the FIN -- counts as EOF; EAGAIN, EWOULDBLOCK and EINTR mean the socket is simply quiet. The peek asks the TRANSPORT, which is sound because the question is about the transport: whether the waiting bytes are application data, an alert or a handshake record has no bearing on whether the socket still has a peer. Reading through the TLS record layer cannot answer it, since that read can block on a control record. Proxy matrix on a fresh image with forward-proxy service on both a plain and a TLS port: 36 of 37 pass, the one failure being TRACE against an external mirror that passes on retry -- up from 30 of 37. Cells 2, 5 and 6, every form of CONNECT through the TLS port, pass for the first time, H2 CONNECT included. HTTPS keep-alive still reuses connections and the 708-check suite is unchanged. 1.11.8 (August 14, 2026) * SHA-256 and SHA-512 stop consing a byte specifier per rotation. 32-RIGHT-ROT masked with (LDB (BYTE BY 0) -1) where BY was a function parameter, so the byte specifier was built at run time -- an object, sixteen bytes, on every rotation. GAMMA0 and GAMMA1 rotate twice each, so an expanded message word cost 64 bytes; SIGMA0 and SIGMA1 rotate three times each, so a compression round cost 96; and a 64-byte block cost 9.2 KB. Every caller in the file rotates by a CONSTANT, as the algorithm does, so both rotations are now macros over a constant count -- the shape 32-SHIFT-RIGHT beside them already had -- and the shifts fold at compile time. 64-RIGHT-ROT carried the same defect and has the same fix. Measured on LispWorks 8.1, bytes allocated per call: before after SHA256-EXPAND 3,072 0 SHA256-COMPRESS 9,216 720 SHA256-ENCODE, 40 bytes 9,840 1,440 SHA256-ENCODE, 4000 bytes 581,232 48,400 per 64-byte block 9,216 757 This is CL-HTTP's SHA-256, so digest authentication pays it on every authenticated request, X.509 on every certificate, and the WebSocket client on every masking key: a key falls from 1247 bytes to 189 and a masked frame from 1345 to 287. Hashing a megabyte allocated about 150 MB and now allocates about 12. Verified against FIPS 180-4: SHA-256 of the empty string, "abc", the 56-character two-block vector and a million 'a's, plus SHA-512 and SHA-384 of "abc". 1.11.7 (August 14, 2026) * The masking scratch is pooled on the connection instead of declared DYNAMIC-EXTENT. Measured on LispWorks 8.1, that declaration buys nothing on a MAKE-ARRAY: a DYNAMIC-EXTENT array of constant size allocates exactly as much as an undeclared one, 4104 bytes against a 0.24-byte floor for pure arithmetic, at (SPEED 3) (SAFETY 0) (DEBUG 0) as much as at the default policy. So every masked frame a client sent allocated four kilobytes the code believed were free. Client send falls from 5466 bytes per message to 1345, and a server -- which never masks -- is unchanged at 99. Pooling costs one buffer per connection, allocated only when a path needs it, and is true on every port whatever each does with DYNAMIC-EXTENT. What remains on a client is the masking key: SHA2:SHA256-ENCODE allocates about 9.2 KB per 64-byte block compressed, eight keys share one digest, and that is 1247 of the 1345. It is not a WebSocket problem -- digest authentication and X.509 pay it on every use -- and it is filed separately. 1.11.6 (August 14, 2026) * Decoded text is POOLED, like the bytes beside it. A :TEXT message used to arrive as a freshly allocated string -- the one allocation left in the message layer, and a multiple of every message a text server ever carries -- while the binary path beside it reused a buffer. WS-MESSAGE-TEXT now decodes into a buffer the connection keeps, grown to a high-water mark bounded by MAX-MESSAGE-SIZE and allocated lazily, since a connection carrying only binary should not pay for one. WS-DECODE-TEXT remains, and remains the way to get a string of one's own. The buffer carries a FILL POINTER, which is what keeps a borrowed string from lying: a pooled string is longer than the message that last filled it, and the leftover characters are perfectly good ones, so a handler that ignored the character count would print, compare and echo the padding as though it were data. With the fill pointer set, LENGTH, STRING= and PRINC report what the peer sent. The session suite caught exactly this and now passes unchanged, which is the evidence the contract survived. * WS-CLAIM-MESSAGE transfers ownership of a received message. Every receive buffer is borrowed and valid only until the next message, which is safe for an ordinary handler because MAP-WEBSOCKET-MESSAGES is synchronous -- the next receive cannot begin until the handler returns, and one worker reads one connection. It stops being safe when a handler queues the message for another thread, and this is what such a handler calls: it takes the buffer and leaves the connection a fresh one, copying nothing. A queue of buffers was considered and rejected. A consumer slower than the producer is overwritten N messages later rather than one, so the window widens and the bug survives testing; closing it properly needs back-pressure, which stalls the reader and with it the PING, PONG and CLOSE frames that must keep moving while the application thinks. 1.11.5 (August 14, 2026) * RFC 6455 WebSocket CLIENT over HTTP/1.1, in portable code shared with every port. WEBSOCKET-CONNECT opens a session by issuing the opening handshake as an ordinary GET through WITH-HTTP-REQUEST, so connection pooling, proxies, authentication and TLS apply unchanged; on a 101 the stream is claimed out of the connection, which is marked close-p so the pool never hands a hijacked stream to a later request. A ws:, wss:, http: or https: URL is accepted, as an object or a string. * WEBSOCKET-DISCONNECT, and the socket leak it closes. A client session claims its stream precisely so that the connection machinery will neither close nor pool it -- and nothing then gave it back, so every outgoing session left an open socket behind. WEBSOCKET-DISCONNECT ends the WebSocket and then disposes of the transport through %DEALLOCATE-CLIENT-HTTP-STREAM, returning it to this port's stream resource like any other client stream. * Client sessions are registered in *WEBSOCKET-SESSIONS*, so an operator listing what an image has open sees both ends of every conversation. DISABLE-WEBSOCKET-SESSIONS accordingly waits only on the sessions this image is the SERVER for: the shutdown flag still reaches an outgoing session, but waiting on one -- which may never be in a message loop -- hung a service shutdown for the whole grace period on a session no service owns. * The session API is exported. WS-SEND-MESSAGE, WS-RECEIVE-MESSAGE, WS-CLOSE, WS-PING, WS-PONG, WS-DECODE-TEXT, the WEBSOCKET-CONNECTION class and its STATE, ROLE, CLOSE-CODE and CLOSE-REASON readers were all internal. Every caller so far lived in the HTTP package and never noticed; a handler written in a user package could not send a binary message or close with a code. * Verified on a fresh image: 684 checks across the frame, message, handshake, session and client suites, none failing, with no compile warnings -- and cross-port interop in both directions, an SBCL client against a LispWorks server and the reverse, over a 200 KB fragmented message, 2/3/4-byte UTF-8 and binary payloads. * Documentation: the reference manual gains Chapter 6, WebSockets, in Part III beside the HTTP Server chapter. 1.11.4 (August 13, 2026) * One atomic interface across all three ports. WWW-UTILS advertises seven atomic operators and until now each port supplied a different subset. ATOMIC-EXCHANGE is new here -- store a value and return the one it displaced -- which LispWorks has as SYS:ATOMIC-EXCHANGE and Genera as PROCESS:ATOMIC-REPLACEF, and which SBCL has no primitive for, so this port writes the compare-and-swap loop. ATOMIC-REPLACEF remains as a deprecated alias. * ATOMIC-PUSHNEW accepted only :TEST where the other two ports accept :TEST, :TEST-NOT and :KEY, and returned only the list where Genera returned whether it had pushed. It now takes all three keywords and answers (VALUES LIST PUSHED-P), which is the contract on every port. * ATOMIC-PUSHNEW's :KEY was wrong everywhere, and the correction is shared. CL:MEMBER applies :KEY to the list elements only, while ADJOIN -- and therefore PUSHNEW, whose contract this operator carries -- applies it to the item as well. Genera's implementation, which this port and the LispWorks one followed, tested with MEMBER, so (ATOMIC-PUSHNEW (CONS :X 2) PLACE :KEY #'CAR) compared (CONS :X 2) against :X, never matched, and pushed a duplicate. Confirmed on Symbolics Common Lisp 501.87, where ADJOIN answers "already present" for the same data MEMBER calls absent. All three ports now use ADJOIN, and pass MEMBER only the one of :TEST and :TEST-NOT supplied, the standard not permitting both. * Verified identical on all three ports over six cases -- first push, repeat push, distinct push, :KEY suppressing a duplicate, :KEY admitting a new item, and :TEST-NOT -- LispWorks 8.1.2, SBCL 2.6.3 and Genera 501.87 returning the same values for each. 1.11.3 (August 13, 2026) * The atomic operations are atomic. ATOMIC-INCF, ATOMIC-DECF, ATOMIC-PUSH, ATOMIC-POP, ATOMIC-PUSHNEW, ATOMIC-REPLACEF and ATOMIC-CONDITIONAL-REPLACEF were built on SB-SYS:WITHOUT-INTERRUPTS, which defers asynchronous signals in the calling thread and does nothing about another core performing the same read-modify-write. On any SMP build they were not atomic at all: four threads incrementing one counter fifty thousand times each recorded 74,209 of 400,000 increments, losing 81 percent of them. CL-HTTP counts connections, cache elements, temporary-file serial numbers and every log statistic through these operators and assumes they work. They are now compare-and-swap loops over SB-EXT:ATOMIC-UPDATE and SB-EXT:CAS, which retry until the swap wins. Measured on the real call sites in a cold-built image, eight threads: 200,000 of 200,000 increments through the (THE FIXNUM *NUMBER-OF-CONNECTIONS*) form in %PROVIDE-SERVICE, exactly back to baseline on decrement, and 1,400,000 of 1,400,000 through the WITH-SLOTS symbol macro in UPDATE-LOG-STATISTICS. Three defects surfaced in the course of the change: - SB-EXT:ATOMIC-UPDATE appends the old value AFTER the arguments it is given, so #'- computed (- DELTA old) and oscillated: a counter set to 20,000 and decremented 20,000 times came back 20,000. ATOMIC-DECF adds a negated delta instead. - Compare-and-swap does not see through THE. (THE FIXNUM place) expanded into (SB-EXT:CAS THE), which does not exist, and that shape is used at two call sites in the server. %ATOMIC-PLACE strips it; the declaration was a hint to the arithmetic the old INCF performed and means nothing to a CAS loop. - A CLOS accessor is not a compare-and-swap place: it expands into a call to (SB-EXT:CAS ), a function nobody defines, and SBCL reports that only as a STYLE-WARNING -- which this build muffles wholesale. The result compiled clean and hung every thread that reached it. %ATOMIC-PLACE now detects this at macroexpansion and signals a full error naming the place and the remedy, which no muffler can hide. Compiling the system clean is therefore proof that every atomic call site in it is CAS-able. The macros take &ENVIRONMENT and pass it to SB-EXT:GET-CAS-EXPANSION. That is not optional: nearly every counter in CL-HTTP is reached through a WITH-SLOTS binding, and those are symbol macros. Without the environment the place would look like a plain special variable and the swap would land on the symbol's value cell rather than the object's slot. LispWorks needed no change: SYS:ATOMIC-INCF is a genuine SMP atomic covering special variables. 1.11.2 (August 2, 2026) * Mirror of LW 3.8.2 -- the changes are in the shared LLM/MCP code and apply identically to this port: - LMACS honours the single escape inside |...|, so \| is a constituent bar. The loader had run past the end of such a form and swallowed the following top-level forms into one entry, and both paren checkers had reported well-formed source as unbalanced. Editing a swallowed entry deleted the definitions that had been absorbed into it. - Entry serialization carries the captured source text and trailing whitespace for every entry class, so a buffer restored from its auto-saved file still writes its file byte for byte. - SOURCE-COMPARE-FILES deletes its scratch buffers; an edited guard keeps the author's spelling. - One path coercion for the ten structural tools; lmacs_copy_buffer takes DESTINATION as well as DEST; new lmacs_delete_buffer. * Verified on a clean SBCL 2.6.3 image built from this tree: the new suite 181/181, the tool-layer script 44/44 over all 36 tools, and the round-trip audit 1979 files / 1978 byte-identical / 0 divergent. The one file the audit cannot read is a BinHex archive that is not Lisp. 1.11.1 (July 3, 2026) * Mirror of LW 3.8.1 -- all changes are in portable code and apply identically to this port: - Byte-range serving fixes (server/utils.lisp, headers.lisp, server.lisp): single-byte ranges (bytes=X-X) no longer answer 416; oversized suffix ranges serve the entire representation per RFC 9110 14.1.2; bytes=-0 answers 416; and the If-Range header is now implemented, so conditional range requests against a changed resource fall back to a full 200 instead of corrupting incremental loaders (the Safari PDF symptom). Verified byte-exact with the 36-case Safari/PDFKit request-shape matrix on this port. - *PERSISTENT-CONNECTION-TIMEOUT* raised 60 -> 120 seconds so the server always outlives client connection pool reuse horizons (Safari 18+ does not retry on a stale pooled connection). - HTML5 document look doctype chain shadowed in the HTML5 package; body-side look machinery inherited from HTML4.0; core :HTTP pages generate HTML5 documents. - Dynamic Forms pages generate through the document look facility; the legacy color scheme emits as per-page CSS. - Dynamic Forms export URL overrides (:HOST, :PORT, :PROTOCOL, :DIRECTORY, :TYPE) on EXPORT-DYNAMIC-FORM and DEFINE-FORM's :EXPORT list. - Manual chapter 12 and Appendix D document look expansion. 1.11.0 (July 2, 2026) * New DYNAMIC-FORMS and SURVEY systems (df/, df/survey/): the Comlink dynamic forms framework ported from CLIM to W3P. See the LW 3.8.0 notes for the feature summary and manual Chapter 12 for documentation. SBCL specifics: the DYNAMIC-FORMS and SIMPLE-PARSER packages are on the VALUES declaration shadow list (sbcl/pre-cl-http.lisp), and the engine's case-insensitive string tables use EQUALP hash tables (MAKE-HASH-TABLE :TEST #'STRING-EQUAL is a LispWorks/Genera extension). * Loader options :dynamic-forms and :dynamic-forms-survey; --batch loads both by default. (1.10.25 through 1.10.36 were development iterations in May and June 2026 -- HTTP/2 hardening, request-body drain, proxy and client fixes; see the git history for details.) 1.10.24 (May 17, 2026) * Mirror of LW 3.7.34: portable fix for multipart file upload rejecting plain (non-armor-plated) field names. FILE-UPLOAD-UNPACK-QUERY-BAGGAGE (server/html2.lisp) previously unconditionally base64-decoded the field NAME as an armor-plated pack of (query-name directory-index). Generic HTML clients (curl -F, browsers with hand-written forms, any form not built by ACCEPT-INPUT :FILE) send the NAME verbatim and triggered BASE64-ODD-SIZE-ERROR in the parser. Fix detects whether the decoded value matches the armor-plated shape and falls back to the raw NAME + *FILE-UPLOAD-DEFAULT-DIRECTORY* otherwise. Wire-verified 18 cells per port across HTTP/1.1 + HTTPS H1.1 + H2 with byte-identical SHA256 on the saved file. 1.10.23 (May 17, 2026) * Portable fix for redirect-from-form-handler hang. The body-drain path called after a condition response on a body-bearing method was blocking on SBCL when the body had already been read by an upstream parser (form, multipart, JSON post-document). The REDIRECTION condition inherits BODY-PRISTINE-ON-SIGNAL, so %APPLY-DRAIN-REQUEST-BODY-POLICY thought no body bytes had been consumed and called STREAM-DISCARD-INPUT to read content-length more bytes. On SBCL the portable byte-by-byte READ-BYTE loop blocked on a TCP stream with no further request bytes until *SERVER-TIMEOUT* expired. LW unaffected because its port-specific STREAM-DISCARD-INPUT specialised on EXTENDED-SOCKET-STREAM recovers gracefully via STREAM:STREAM-FILL-BUFFER. Fix is portable and benefits all ports. New slot REQUEST-BODY-CONSUMED-P on BASIC-SERVER-MIXIN (server/class.lisp), set T in APPLY-FORM-RESPONSE-FUNCTION on FORM-PROCESSING-MIXIN before invoking the user handler, cleared by RESET-TRANSACTION-STATE per request. %TRY-TO-DRAIN-REQUEST-BODY (server/report.lisp) short-circuits to T when the slot is set, skipping the drain. Documented in conditions.html under "Connection Draining on Error". Wire- verified by the 90-cell redirect matrix (LW + SBCL, HTTP/1.1 + HTTP/2, HTTP + HTTPS) -- all formerly-hung POST-on-:computed-form cells now return the correct redirect response. * RFC 9110 redirect dispatch fixes inherited from LW 3.7.32 -- the full set of changes is described in the next entry. * New status code 308 Permanent Redirect: DOCUMENT-PERMANENT-REDIRECT condition (server/http-conditions.lisp) inheriting the HTTP/1.1 downgrade mixin so pre-RFC-7538 HTTP/1.0 clients fall back to 302. :PERMANENT-REDIRECT is now method-aware: GET/HEAD -> 301; non-safe methods -> 308 (preserves request method and body). POST on a :REDIRECT declarative URL therefore returns 308 instead of 301. * :TEMPORARY-REDIRECT + HEAD now returns 302 instead of 307 (RFC 9110 sec 9.3.2 -- HEAD identical to GET except for body). * :FORWARD + HEAD honours EXPLICIT-EXPIRATION-P parity with GET. :FORWARD branch flattened to explicit (GET/HEAD), (POST), (T) clauses -- no silent fallthrough. * STANDARD-URL-REDIRECT docstring rewritten with RFC 9110 section references. :PROXY (305 Use Proxy) documented as DEPRECATED by RFC 9110 sec 15.4.6 -- modern HTTP clients ignore it. Retained for backward compatibility only. See conditions.html "standard-url-redirect Dispatch". 1.10.22 (May 9, 2026) * Mirror of LW 3.7.29: H2 request body byte-count accounting via PARENT-STREAM back-pointer on H2-REQUEST-BODY-STREAM (sbcl/server/http2-stream.lisp); H2 CONNECT tunnel relay catches CONNECTION-CLOSED from %REACTOR-SEND (sbcl/server/http2-tunnel.lisp); portable wiring in INITIALIZE-HTTP2-RESPONSE-STREAM-RESOURCE. 1.10.21 (May 8, 2026) * Mirror of LW 3.7.28: portable fix for FIXNUM type-error in HANDLE-DROPPED-CONNECTION when client drops mid-request-line (server/server.lisp, server/http2.lisp). The status slot has initform NIL, so the FIXNUM declaration crashed when the client dropped before any response was committed. Drop the FIXNUM declare; treat NIL and 0 alike as "no status committed yet". Removed the spurious 502 case -- BAD-CONNECTION-STATE inherits status-code 502 from BAD-GATEWAY at the class level, but no origin-server code path actually writes that 502 into the server-status slot before dropped-connection fires. 1.10.20 (May 8, 2026) * Mirror of LW 3.7.27: proxy cache uses canonical URL string for cache keys. Verified empirically: two requests to "http://httpbin.org/get" and "http://httpbin.org:80/get" produce a single cache entry keyed by "http://httpbin.org/get" (was previously two entries). No regressions on the proxy test matrix or cache-hit-test. 1.10.19 (May 8, 2026) * SBCL outbound HTTPS clients use +VERIFY-REQUIRED+ for TLS context creation. pure-tls's :AUTO-LOAD-SYSTEM-CA option only fires when verify-mode is +VERIFY-REQUIRED+ (see pure-tls/src/context.lisp:109-112) -- with +VERIFY-PEER+ the trust store stays NIL and the TLS handshake fails with "No trusted root certificates available for verification (UNKNOWN-CA)". An HTTPS server always presents a certificate, so requiring one is the correct semantic for an outbound HTTPS client; +VERIFY-PEER+ ("verify if presented") was the wrong choice. Three sites updated: sbcl/client/http2.lisp:326 (H2 client), sbcl/client/ssl.lisp:317-318 (default + :always verify), sbcl/client/unix.lisp:84 (H1.1 client). * Portable declaim ftypes referenced an undefined type CL-HTTP-CLIENT-HTTP2-CONNECTION (the actual class is per-port CLIENT-HTTP2-CONNECTION). In cold compile this was harmless (SBCL's type checker tolerates undefined types in declaims) but on-the-fly recompile triggered "unknown type specifier". Relaxed the type slots to T in client/http2.lisp:518-522. * Closes cells 5b and 6b of the SBCL proxy test matrix. Cell 5b (in-image client / plain proxy / H2 origin): proxy outbound H2 to nghttp2.org:443 verified via H2 connection pool. Cell 6b (in-image client / TLS+H2 proxy / H2 origin): both legs H2 -- pool shows entries for 127.0.0.1:9443 (front) and nghttp2.org:443 (back). 1.10.18 (May 8, 2026) * Stop escalating WARNINGs to 500 errors. Mirror of LW 3.7.25. %PROVIDE-SERVICE's handler-bind caught CONDITION as the catch-all clause -- which includes WARNING. Libraries that legitimately WARN about non-fatal issues (e.g. pure-tls warning that one cert in /private/etc/ssl/cert.pem was malformed and will be skipped, per RFC 5280 ยง4.1.2.2 guidance) had those warnings caught as if errors and turned into 500 server responses. Symptom: in-image client through proxy to HTTPS origin returned "500 Internal Server Error" because pure-tls warned about one bad cert in the macOS system CA bundle. Fix: change the catch-all from CONDITION to SERIOUS-CONDITION (catches errors + storage-condition, not warning). Two sites: sbcl/server/tcp-interface.lisp:273 (H1.1) and server/http2.lisp:1228 (portable H2). Closes cell 5b of the SBCL proxy test matrix -- proxy outbound HTTPS to nghttp2.org now succeeds via the in-image client. 1.10.17 (May 8, 2026) * TLS-fronted H1.1 CONNECT relay fix. TUNNEL-THROUGHPUT returned 200 to the client over TLS, then never relayed tunnel bytes -- bytes were copied into the destination output buffer but FORCE-OUTPUT (in the loop's FINALLY clause) never fired because the loop never quiesced. Root cause: pure-tls's STREAM-LISTEN returns T more aggressively than LW's, so COPY-BUFFER-P stayed T forever after the immediate buffer was drained, the outer loop set DATA-COPIED-THIS-CYCLE-P unconditionally, and FORCE-OUTPUT never ran. Fix is portable: STREAM-COPY-INPUT-BUFFER returns the actual byte count (was: NIL) and TUNNEL-THROUGHPUT gates DATA-COPIED-THIS-CYCLE-P on PLUSP of that count. SBCL specialization in sbcl/server/tcp-stream.lisp updated to track byte count and attempt at most one refill if the input buffer was empty on entry; if the refill brings nothing, returns 0 so the outer loop quiesces correctly. Closes cell 2 of the SBCL proxy test matrix. * Plus the LW 3.7.23 portable fixes: H2 forward-proxy client + RFC 9110 Via header conformance. Inherited via shared portable code (server/headers.lisp, proxy/utils.lisp, client/http2.lisp). 1.10.16 (May 5, 2026) * Meaningful TLS-tier reasons; SSL-UNREPORTABLE-CONDITION. Mirror of LW 3.7.18. Two combined defects suppressed every TLS-tier failure into a generic "Bad Gateway" log line: - Slot-package mismatch. HTTP-STATUS-CODE-MIXIN in sbcl/server/tcp-stream.lisp (file in :IPC package) defined the REASON slot unqualified, landing it on IPC::REASON with reader IPC::HTTP-REASON. Subclass overrides (REASON :INITFORM "X") in :IPC also landed on IPC::REASON, but portable REPORT-STATUS-MESSAGE reads HTTP::HTTP-REASON, which returned NIL and fell through to the inherited "Bad Gateway". - Tree 1 SSL conditions (SSL-CONDITION, SSL-ERROR, SSL-FAILURE, SSL-HANDSHAKE-FAILURE, SSL-CLOSED, SSL-X509-LOOKUP, and SSL-CERTIFICATE-REJECTED) bypass REPORTABLE-CONDITION entirely -- they go through NETWORK-ERROR -> SIMPLE-ERROR. No named :report method ever ran for them. Fixes: - HTTP-STATUS-CODE-MIXIN now defines its REASON slot in the HTTP package, aligned with REPORTABLE-CONDITION's HTTP::REASON slot so subclass overrides in :IPC actually take effect. - New WWW-UTILS:SSL-UNREPORTABLE-CONDITION as the common parent for the seven Tree 1 leaves. Inherits the named %REPORT-UNREPORTABLE-SERVER-CONDITION method from portable HTTP::UNREPORTABLE-SERVER-CONDITION (added in LW 3.7.18) so log lines render " " correctly. - Each leaf gets correct HTTP::REASON text ("SSL Failure", "SSL Handshake Failure", "SSL X509 Lookup", etc.). - Forward stub for HTTP::UNREPORTABLE-SERVER-CONDITION in server/conditions-early.lisp so SBCL's strict compile-time class lookup is satisfied; portable definition supersedes on second-pass load. Verified: cold-compile clean, malformed TLS handshakes render meaningful reasons in logs, no fd leak, HTTP/1.1 and H2 paths unaffected. 1.10.15 (May 4, 2026) * Cold compile is now warning-free. Two long-standing forward- reference warnings cleared in sbcl/server/tcp-stream.lisp: - declaim FTYPE for HTTP::MAYBE-SIGNAL-CHARACTER-SET-ERROR (defined in server/http-conditions.lisp which loads after tcp-stream.lisp). Used by the UTF-8 decode error paths and the chunked-transfer drain. - declaim SPECIAL for HTTP::*MAXIMUM-DRAINABLE-BYTES-FOR-REQUEST-BODY* (defined in server/report.lisp). Used by STREAM-DISCARD-INPUT on the chunked-encoding drain. Both wrappers mirror the pattern already used in lw/server/ tcp-stream.lisp. The variable was only declared SPECIAL on LW before this release; SBCL was emitting an undefined-variable warning at every cold compile. * %UNIX-WRITE-BUFFER now signals specific CL-HTTP conditions on errno (via the existing GET-TCP-ERROR-CLASS helper) rather than a generic NETWORK-ERROR. Client disconnect mid-write (EPIPE, ECONNRESET) now signals CONNECTION-CLOSED, which the HANDLE-DROPPED-CONNECTION handler in server/server.lisp treats as a normal connection-close event (sets status 408 if no response started, preserves any committed status, exits the request loop cleanly). Previously these errors were caught by the generic ERROR handler and bug-reported as 500 Internal Server Error responses. Verified under ab -c 20 -n 30000: zero failed requests where the previous build produced sporadic 500s under sustained keep-alive load. 1.10.14 (May 3, 2026) * New lisp_processes MCP tool [shared with LW] -- see the LW 3.7.16 release notes for the cons-free JSON design and field set. * Real per-thread CPU time on Darwin via Mach thread_info. PROCESS-RUN-TIME now returns true per-thread accumulated user_time + system_time in microseconds for any thread, not just the calling one. The Mach FFI: - pthread_mach_thread_np converts SB-THREAD::THREAD-OS-THREAD (a pthread_t) to a Mach thread port. - thread_info(THREAD_BASIC_INFO) returns user_time and system_time as time_value_t {seconds, microseconds} pairs; we sum into microseconds to match the LW PROCESS-RUN-TIME contract. - Dead threads (KERN_INVALID_ARGUMENT) and zero ports return NIL from %THREAD-CPU-MICROSECONDS, so PROCESS-RUN-TIME falls through to 0 and callers' fixnum declares hold. Cross-thread sampling unblocks PROCESS-UTILIZATION for every thread on Darwin; under ab -c 20 -n 30000 verification, 21 of 21 HTTP worker threads showed real utilization (~22% each, sum 433% across the worker pool, ~4.3 cores on M4). Linux and other Unix retain the system-wide GET-INTERNAL-RUN-TIME fallback until pthread_getcpuclockid is wired up. The previous comment claiming CLOCK_THREAD_CPUTIME_ID is "not available on Darwin" was outdated; sb-unix:clock-gettime accepts clockid 16 on Darwin and returns the calling thread's CPU time. Cross-thread access still requires Mach thread_info, which is what we now use uniformly. * PROCESS-UTILIZATION (in mcl/server/www-utils.lisp) collapses the LW and SBCL branches into one body using #.INTERNAL-TIME-UNITS-PER-SECOND as a read-time constant: LW bakes in 1000 (ms wall clock), SBCL bakes in 1000000 (us wall clock). Single formula (delta-run * iutps) / (delta-real * 10000) produces correct percentages on both ports. Locking branches on mp:with-lock / sb-thread:with-mutex. 1.10.13 (May 2, 2026) * HTTP/2 RST_STREAM cleanup on body-bearing error responses (re-land of Phase 3, with portable abstractions). Same portable infrastructure as LW 3.7.15: HTTP2-PROTOCOL-P generic, ABORT-HTTP2-STREAM generic, H2-SEND-ABORT parameterized with optional error-code defaulting to HTTP2/CORE::+CANCEL+ (legacy CLOSE :ABORT callers); post-END_STREAM cleanup passes HTTP2/CORE::+NO-ERROR+ per RFC 7540 section 8.1.1. SBCL reactor command dispatch reads h2-scmd-abort-error-code from the parameterized struct. Verified end-to-end on SBCL HTTPS:9443: H2 POST 404 returns cleanly with no curl stream error and the connection stays intact. * %GRACEFULLY-CLOSE-HTTP2-CONNECTIONS and INITIALIZE-HTTP2 mirror the LW 3.7.15 changes: post-timeout warning routes through CAREFUL-NOTIFY-LOG-WINDOW, the routine "Sending GOAWAY" announcement is suppressed, the H2 startup banner consolidates to one line via the new string-accepting variant of CAREFUL-NOTIFY-LOG-WINDOW. Function refactor matches LW. * sbcl/patches/http2-clssl-compat.lisp: FORMAT T replaced with FORMAT *STANDARD-OUTPUT* (coding rule 10: explicit stream). 1.10.12 (May 1, 2026) * Drain-on-error machinery activated and certified end-to-end on SBCL. Same portable infrastructure as LW 3.7.14: *DRAIN-REQUEST-BODY-ON-SIGNALS* (NIL / T / :DRAIN-CHUNKED), budget *MAXIMUM-DRAINABLE-BYTES-FOR-REQUEST-BODY* (default 65536), %APPLY-DRAIN-REQUEST-BODY-POLICY as a pure predicate, caller in %SEND-RESPONSE-FOR-HTTP-CONDITION uses the return value, single SETF site for SERVER-CLOSE-CONNECTION-P. Verified across the full 12-cell matrix (small/large CL, small/large chunked, three flag values) on POST 404. Server- side connection reuse confirmed via the access-log {N} request-count-on-connection field: clean drain produces {1} POST -> {2} GET on a single TCP connection. * SB-GRAY:STREAM-READ-BYTE on HTTP-SOCKET-STREAM now translates WWW-UTILS:END-OF-CHUNK-TRANSFER-DECODING to :EOF. The chunk decoder's %REFILL-INPUT signals the condition on the terminal zero-size chunk; before this fix the signal escaped READ-BYTE unhandled and the drain loop terminated mid-iteration with no return value. Catching it at STREAM-READ-BYTE and returning :EOF restores the Gray-stream contract -- CL:READ-BYTE with EOF-ERROR-P NIL now returns the eof-value on end-of-chunks, matching the LW port and letting portable drain code use a simple READ-BYTE loop with FINALLY. * Two new STREAM-DISCARD-INPUT fast paths: - INTEGER extent (sbcl/server/tcp-stream.lisp): O(1) buffer- bump for Content-Length-bounded drain. Advances INPUT-INDEX without per-byte dispatch, refilling from the socket as the buffered prefix runs out. Returns T on full drain, NIL on EOF before reaching the byte count. - :CHUNKED-TRANSFER-ENCODING (sbcl/server/tcp-interface.lisp): Buffer-bump fast path for chunked drain. WITH-CHUNKED- TRANSFER-DECODING clamps INPUT-LIMIT to the current chunk's data region (chunk-size markers and inter-chunk CRLF are hidden), so bumping INPUT-INDEX within [INPUT-INDEX, INPUT-LIMIT) consumes only payload bytes. IPC::%REFILL-INPUT advances across chunk boundaries and signals END-OF-CHUNK- TRANSFER-DECODING on the terminal chunk, caught for clean success. * All portable changes from LW 3.7.14 apply to SBCL via the shared portable code: TRANSFER-ENCODING keyword detection (EQ not MEMBER), %HTTP2-ENTER-RESPONSE-BODY rename and #+HTTP2 gate, removal of :CLOSE-CONNECTION T from invoke-server-method error sites, OPTIONS Content-Length 0, cross-protocol virtual-host nick-name aliasing, and CL-USER:PACKAGE-ADD-SYMBOLS for additive package augmentation. 1.10.11 (April 29, 2026) * Drain-on-error infrastructure landed but DISABLED. Same portable infrastructure as LW 3.7.13, gated by *DRAIN-ON-ERROR-ENABLED-P* (default NIL). Default behaviour is close-on-error (Phase 1 / 1.10.9 semantics); flipping the switch to T enables the optimisation without re-landing any code. Original Phase 2 design notes follow for reference -- they describe the BEHAVIOUR you get when the gate is open. * Drain-on-error for HTTP/1.1 body-bearing methods. Same portable infrastructure as LW 3.7.13. Verified end-to-end on hot-loaded SBCL (port 8002) -- pipelined multipart POST + GET on the same connection both parsed correctly; small POSTs drained, large POSTs and chunked POSTs close. No SBCL-specific edits -- the change is fully portable in server/http-conditions.lisp, server/report.lisp, and server/package.lisp. 1.10.10 (April 27, 2026) * TLS accept-failure logging now working end-to-end on SBCL. Synthetic CLF entries land in the access log when pure-tls signals during the TLS handshake. MAP-TLS-ERROR (existing in sbcl/server/tcp-stream.lisp:336) translates each pure-tls condition to the corresponding www-utils:ssl-* class, which now carries the structural STATUS-CODE via http-status-code-mixin initforms (525 / 499 / 526 / 495 per the nginx mapping). Sample log entry: 127.0.0.1 - - [date] "TLS /ssl-protocol-error HTTP/1.1" 525 0 All portable infrastructure described in the LW release notes for 3.7.12 applies on SBCL identically. * STATUS-CODE symbol unified across HTTP, WWW-UTILS, IPC, and W4 (cf. LW 3.7.12 release notes). Per-port edit in sbcl/server/package.lisp adds STATUS-CODE to the existing (:import-from "HTTP" "BAD-GATEWAY") clause in WWW-UTILS. TLS-ERROR-CODE export added to the SBCL WWW-UTILS export list, matching LW. * SSL condition status-code mapping per nginx. Edits to sbcl/server/tcp-stream.lisp parallel the LW changes: HTTP-STATUS-CODE-MIXIN slot/reader use WWW-UTILS::STATUS-CODE; bare ssl-* classes given the mixin parent + per-class initform; CPL fixes on ssl-handshake-failure and ssl-protocol-error (dropped redundant direct mixin inheritance). MAP-TLS-ERROR's existing translation table now reaches conditions with proper status-code initforms. * PROCESS-WAIT / PROCESS-WAKEUP migrated from condition variable + mutex to per-thread semaphore. Eliminates the "thread is not holding mutex" simple-error that fired during startup when SBCL's CONDITION-WAIT timeout returned without re-acquiring the mutex (a known caveat that can leave the surrounding WITH-MUTEX form unable to release on unwind). Semaphores have no ownership semantics, so the failure mode is structurally impossible. Side benefits: simpler code, fewer locks, fewer wakeup paths. Edit in sbcl/server/unix.lisp PROCESS-WAKEUP-STATE struct: (mutex + waitqueue) -> (semaphore) with PROCESS-WAIT, PROCESS-WAIT-WITH-TIMEOUT, and PROCESS-WAKEUP rewritten accordingly. Verified by 9 startup-time errors going to 0 across LW and SBCL daemons (log writers, GC-Proxy-Cache, URL Cache Revalidator, Multi-Port-Statistics). * H1.1 close-on-error fix from 1.10.9 retained. No regression. 1.10.9 (April 26, 2026) * Fix HTTP/1.1 persistent-connection corruption when an error response (401, 405, 415, 503, ...) is returned to a body-bearing method (POST/PUT/PATCH/DELETE/OPTIONS). Symptom in the access log: POST /path HTTP/1.1 401 956 "------geckoformboundary..." 400 823 The unread request body sat in the input buffer; the next read-delimited-line on the kept-alive connection picked up the multipart boundary and parsed it as a request line. Reproduced with Firefox auth-protected POSTs and with file uploads. Root cause: commit 352e199 (April 19) moved the close-connection case for write methods inside the unchunked branch of %emit-error-response. HTTP/1.1's chunked branch is the one that always runs, so the close was never set and the body residue corrupted the next request. Fix: hoist the case back outside the chunking cond so both branches close the persistent connection on error responses to body-bearing methods. Restores pre-352e199 behavior; keeps the broadened method set (:post :put :patch :delete :options). A drain-on-error refinement that preserves connection reuse for the auth-retry hot path is planned -- see sbcl/devo/request-body-drain-plan.md. 1.10.8 (April 25, 2026) * Character translation alignment with the LW post-3.7.5 architecture. CL-HTTP-SOCKET-STREAM and the H2 stream classes now participate in a uniform CHARACTER-TRANSLATION-STREAM-MIXIN encoding protocol so WITH-CHARACTER-OUTPUT-ENCODING / WITH-CHARACTER-INPUT-DECODING work identically across H1.1 and H2. Portable additions (server/variables.lisp, http-conditions.lisp, package.lisp): - *DEFAULT-CHARACTER-SET* now picks per-port via reader conditional: SBCL :UTF-8, LW/Genera :ISO-8859-1. - New *SIGNAL-CHARACTER-SET-ERROR* (default NIL). Bind to T to discover handlers writing characters that the active charset cannot represent (Latin-1 with code > 255, ASCII with code > 127, malformed UTF-8 in the byte stream). When NIL, the encoding code substitutes a byte silently -- production runs do not fail on a stray character. - New CHARACTER-SET-ERROR condition (with character-set, code-point, stream, context slots) plus inline guard MAYBE-SIGNAL-CHARACTER-SET-ERROR. Zero hot-path cost when the gating variable is NIL. SBCL stream architecture (sbcl/server/tcp-stream.lisp, sbcl/server/http2-stream.lisp): - Factored CHARACTER-TRANSLATION-STREAM-MIXIN holding the four encoding slots (output-encoding, input-decoding, utf8-decode-state, utf-8-accumulator). Mirrors LW's IPC::CHARACTER-TRANSLATION-STREAM-MIXIN. - Slot initforms read HTTP:*DEFAULT-CHARACTER-SET* so a fresh stream's encoding state matches the port default (was: NIL). - Primary STREAM-WRITE-CHAR / STREAM-WRITE-STRING rewritten to byte-copy with MAYBE-SIGNAL-CHARACTER-SET-ERROR for code > 255. Was: hardcoded UTF-8 via SB-EXT:STRING-TO-OCTETS. - New %STREAM-WRITE-UTF-8-STRING dispatch generic. Default method (per-char fallback) plus specialisations for CL-HTTP-SOCKET-STREAM (bulk SB-EXT:STRING-TO-OCTETS) and HTTP2-RESPONSE-STREAM (per-char with inline 1/2/3/4-byte UTF-8 emission via :around on STREAM-WRITE-CHAR). - :AROUND methods on the mixin dispatch to UTF-8 encoding when STREAM-CHARACTER-OUTPUT-ENCODING is :UTF-8. Otherwise fall through to the byte-copy primary. - HTTP2-RESPONSE-STREAM and H2-REQUEST-BODY-STREAM now inherit the mixin so the same machinery serves both protocols. Stream class rename (SBCL only, internal IPC package): - CL-HTTP-SOCKET-STREAM -> HTTP-SOCKET-STREAM - CL-HTTP-CHUNK-TRANSFER-SOCKET-STREAM -> HTTP-CHUNK-TRANSFER-SOCKET-STREAM The "CL-HTTP-" prefix on a class name inside a CL-HTTP package is redundant. LW, Genera, CMU CL keep their pre-existing names; this rename is SBCL-local. Eight files touched (server + client) plus the SBCL branch of the reader-conditional in portable server/http2.lisp's %DISPATCH-WITH-HTTPS-FALLBACK. Net behaviour: - SBCL unscoped writes still emit UTF-8 (slot defaults to :UTF-8 via *DEFAULT-CHARACTER-SET*) -- byte-for-byte identical to the previous hardcoded behaviour for ASCII and UTF-8 content. - WITH-CHARACTER-OUTPUT-ENCODING (s :UTF-8) on H2 streams now actually works (was a no-op). Cold compile required (slot-layout change on the renamed stream classes). Verified on a freshly-cold-compiled SBCL: ASCII page (24044 bytes), binary (favicon, 2730 bytes), 404 error body, HEAD requests, dynamic chunked transfer, Content-Type charset negotiation -- all clean. * ST-JSON: latent NIL/HASH-TABLE type conflict in READ-JSON-OBJECT fixed. ACCUM was &AUX-bound to NIL but the :HASHTABLE branch's COLLECT-KEY-VALUE-PAIR-HASHTABLE called (SETF (GETHASH KEY ACCUM) VAL) -- a runtime type error if anyone ever bound *DECODE-OBJECTS-AS* to :HASHTABLE. No CL-HTTP / MCP / LLM caller exercises this branch today, but SBCL's flow analysis caught the conflict. ACCUM is now initialised by a CASE on *DECODE-OBJECTS-AS* (fresh EQUAL-test hash-table for :HASHTABLE, NIL otherwise) and the hashtable collector wraps ACCUM in (THE HASH-TABLE ...) for the GETHASH call. ST-JSON.LISP now compiles clean. 1.10.7 (April 25, 2026) * TLS accept-failure logging matches the LW port (3.7.10). Before, an unrecognised SSL handshake error in the SBCL HTTPS listener silently closed the client socket via IGNORE-ERRORS with no log record at all. Now the worker thread captures the remote endpoint via SOCKET-PEERNAME before the handshake attempt and the handler-case dispatches: - Recognised network failures (WWW-UTILS:NETWORK-ERROR, including all SSL-* subclasses, plus END-OF-FILE) flow through %LOG-TLS-ACCEPT-FAILURE into the standard access log as a synthetic COMMON-LOG-ENTRY. - Unrecognised conditions go to %NOTIFY-TLS-ACCEPT-FAILURE- CONSOLE which routes through CAREFUL-NOTIFY-LOG-WINDOW (which on SBCL writes a timestamped line to *TRACE-OUTPUT* until a real log window grows). Console line shape is identical to the LW port: : - - "TLS: HTTP/1.1" 0 - [(error )] where reads from the condition's STATUS-CODE slot via %TLS-ACCEPT-CONSOLE-STATUS, which probes both the HTTP::STATUS-CODE slot (from REPORTABLE-CONDITION on LW) and the IPC::STATUS-CODE slot (from HTTP-STATUS-CODE-MIXIN used by SBCL's www-utils:ssl-* family). Falls back to the synthetic %CLASSIFY-TLS-ACCEPT-CONDITION code (495/497/499/ 500) when neither slot is populated. - The two outstanding IGNORE-ERRORS calls in the worker were replaced with HANDLER-CASE forms per the no-IGNORE-ERRORS coding rule. * All runtime *ERROR-OUTPUT* writes in the SBCL tree now route through the NOTIFY-LOG-WINDOW abstraction: - sbcl/client/http2.lisp H2 client writer error: was a raw FORMAT to *ERROR-OUTPUT*, now a CAREFUL-NOTIFY-LOG-WINDOW call. - sbcl/server/http2.lisp HTTPS listener catch-all: was (REPORT-BUG *ERROR-OUTPUT* ... CONDITION) which silently failed because CONDITION was being passed where a format-string was expected (caught by the surrounding IGNORE-ERRORS). Now (REPORT-BUG *BUG-HTTP-SERVER* "HTTPS Listener" "~A" CONDITION) which actually emits the report through NOTIFY-LOG-WINDOW. All bare FORMAT-to-*ERROR-OUTPUT* calls that remain are in startup files (start.lisp, start-server.lisp, pre-cl-http.lisp) -- they fire before any service exists and the user is at the terminal. Routing them through the abstraction would only add a misleading timestamp prefix. Centralising runtime console output through NOTIFY-LOG-WINDOW prepares for a future swap of the SBCL console substrate (real log window, syslog, structured journal) at one well-defined point. 1.10.6 (April 22, 2026) * H2 error and redirect responses now emit their body. Before, any reportable-condition on H2 returned HEADERS with END_STREAM and no DATA frames because %EMIT-ERROR-RESPONSE bypasses the chunking wrapper on H2 (correct -- H2 has no chunked TE on the wire) but that wrapper was also the path that transitioned the stream from :HEADERS-SENT to :BODY. Body writes accumulated in the header buffer and were discarded on CLOSE. Fix: portable generic %ENTER-RESPONSE-BODY called between WRITE-RESPONSE and the body-writer. Default no-op for H1.1; method on HTTP2-STREAM drives the state transition directly. Parallel LW fix in 3.7.7. 1.10.5 (April 22, 2026) * H2 STREAM-FRESH-LINE now honours the CL contract -- emits a newline only when not already at the start of a line. Previously it was a STREAM-TERPRI alias (unconditional LF). Implementation: new AT-LINE-START-P slot on HTTP2-RESPONSE-STREAM, updated inside %H2-WRITE-BYTE-TO-BUFFER and %H2-WRITE-OCTETS-TO-BUFFER from the last body byte written. STREAM-FRESH-LINE reads the slot. Portable resource initializer resets the slot on pool reuse. Parallel LW fix in 3.7.6. 1.10.4 (April 21, 2026) * Fix H2 SSE zombie-handler crash. When an H2 connection is returned to the pool (client disconnect, idle timeout) the reactor's thread slot is cleared, but SSE handlers on separate worker threads may still be blocked in process-wait with no knowledge that the connection is gone. When the handler wakes, its next force-output pokes a NIL thread -- TYPE-ERROR, 500 response, bug report generated. %REACTOR-SEND and %REACTOR-WAKEUP now signal WWW-UTILS:CONNECTION-CLOSED when the reactor thread slot is NIL. The handler's WITH-EVENT-STREAM-RESPONSE catches it as BAD-CONNECTION-STATE and unwinds cleanly. Portable client-side fix: log-window SSE JavaScript now only reloads the frameset when EventSource.readyState is CLOSED (permanent), letting the browser auto-reconnect on transient closes instead of looping through frameset reloads. 1.10.3 (April 20, 2026) * H2 reactor: guard writes on CLOSED streams. New %H2-STREAM-CLOSED-P predicate gates %REACTOR-DRAIN-DATA and %REACTOR-RESUME-PENDING-WRITES so a peer RST_STREAM (or already-emitted END_STREAM) racing against a queued write no longer crashes the reactor via Zellerin's CHANGE-STATE-ON-WRITE-END ECASE. Portable fix shared with the LispWorks port. 1.10.2 (April 20, 2026) * H2 client: parse WWW-Authenticate / Proxy-Authenticate and signal the correct condition class with the real auth scheme and realm (previously sentinel :unknown / nil). 303 now correctly classified as document-forwarded. * H2 client pure delivery: %h2-handle-response no longer intercepts status codes; WITH-STATUS-CODE-DISPATCH in the response-handler body does the dispatch (same as H1.1). Fixes the H2 upstream proxy-forward case. * WITH-STATUS-CODE-DISPATCH extended to 307/308; FLUSH-INPUT- ENTITY gated off on :http/2. * Fix LENGTH-on-keyword crash in CLIENT-CONNECTION-VERSION no-connection fallback. * Fix recursive HTML in 502 body when proxy upstream errors. REPORTABLE-CONDITION's :report is now a short single-line description instead of the full HTML body. REPORT-STATUS- MESSAGE remains the HTML body writer, called explicitly from the emission path. Applied in sbcl/server/conditions- early.lisp as well as the portable server/http-conditions.lisp. 1.10.1 (April 20, 2026) * H2 redirect Location header fix: 3xx responses on HTTP/2 now carry the Location header so browsers follow the redirect. Fix ships via the portable server/report.lisp and server/http2.lisp changes shared with the LispWorks port. * Unified report-status through write-response. One primary report-status ((reportable-condition)) method handles every reportable condition; inline typecase collects condition- specific contributions (redirect / auth / cache / allow) via local inline flet functions; emission routes through write-response. Eliminates the H2-specific report-status bypass. * server-supports-chunking-p converted from a macro to a generic function with an http2-server method returning nil. * Expanded HTTP/1.0 connection-close list for write-methods from (:post :put) to (:post :put :patch :delete :options), matching RFC 7231 request-body permissions. * url:parsing-error, server-internal-error, and server-overloaded routed through the shared %emit-error-response helper. 1.10.0 (April 17, 2026) * H2 client flow-control fix: apply-data-frame now writes WINDOW_UPDATE frames (connection and stream level) after each received DATA frame, plus trailing force-output in %flush-and-read. Without this, responses larger than the initial 64 KiB-1 H2 window deadlocked. Verified against Google, GitHub, Wikipedia, Cloudflare, nghttp2. * Resource constructor signatures: all H2 command struct constructors and make-h2-pending-write-resource now declare parameters explicitly. Surfaces arity drift at compile time. * H2 client result invariant: %h2-invoke-http-service cond now has an explicit T clause that signals if done-p=T but result=NIL. * Testing: server matrix 30/30 (HTTP/HTTPS x H1.1/H2 x GET/HEAD/OPTIONS/TRACE/POST x LW/SBCL). External H2 client 5/5 (Google, GitHub, nghttp2, Wikipedia, Cloudflare). * Performance (persistent connections, 24 KB page): H1.1 client: ~1000 req/s. H2 client: ~274 req/s. H2 new-connection: ~133 req/s. H2 persistent 2x over new. LW and SBCL at parity across all measurements. 1.9.11 (April 10, 2026) * H2 connection limit: picks up the portable fix to %http2-process-request -- H2 requests now respect *maximum-number-of-connections* and return HTTP/2 503 via server-overloaded condition signaling. 1.9.10 (April 10, 2026) * Fix stale class reference cl-http-http2-connection -> http2-server-connection in sbcl/server/http2.lisp. The eval-when at load time was looking up the old class name and failing silently -- %gracefully-close-http2-connections never got registered, breaking disable-http-service for HTTPS+H2. Discovered when restarting HTTPS service to enable H2 ALPN. Verified: cold compile clean, server H1.1/H2 200/H2 404/HTTPS, client H2 external (nghttp2.org)/self/H1.1, 100 H2 stress test in 1.4s with no thread leak. 1.9.9 (April 10, 2026) * H2 proxy CONNECT cleanup: replace ignore-errors with handler-case catching specific stream-error, network-error, and sb-bsd-sockets:socket-error conditions. Also rename stale class reference cl-http-http2-server-stream -> http2-server-stream. 1.9.8 (April 9, 2026) * H2 header classes Phase 4-6: eliminate string round-trips on all four H2 header paths (portable code shared with LW 3.6.6). Phase 4 (client inbound): h2-header-set populated directly during HPACK decoding, bound to *headers* and client-response-headers. Phase 5 (server outbound): write-response generic on http2-server, portable http2-stream base class, http2-send-headers generic. Error/redirect dispatch via report-status :around on http2-stream. Phase 6 (client outbound): %h2-request-headers-from-writer with direct plist-to-alist conversion via %h2-header-plist-entries. 1.9.7 (April 8, 2026) * H2 client reactor refactored to h2-reactor CLOS class (SBCL): - Client connection class uses reactor slot (replaces separate reactor-mailbox and reactor-thread slots). - %client-reactor-loop promoted to defmethod. - Client reactor converted to process-wait with condvar-based wake (was receive-message polling with 5ms timeout). - Send sites use %reactor-send through delegating method. - Zero idle CPU, immediate wake via condvar. Verified: 68/68 MCP tests. H2 client external and self-fetch. 1.9.6 (April 8, 2026) * H2 server reactor class with event-driven wake (portable + SBCL): - Portable h2-reactor CLOS class encapsulating thread and mailbox with %reactor-send, %reactor-wakeup, %reactor-drain, %reactor-reset, and %reactor-loop generic functions. - Connection class owns reactor (pooled with it). Mailbox persists across pool cycles; thread set/cleared per cycle. - Delegating methods on connection so streams dispatch reactor operations without knowing about the reactor directly. - h2-tunnel converted from defstruct to defclass with reactor slot and %tunnel-relay-loop generic function. - All send sites use %reactor-send for uniform API. * Condvar-based process-wait replacing adaptive polling (SBCL): - Per-thread condition variable (futex-backed) for process-wait. - process-wakeup signals condvar for immediate wake (30us latency, was up to 1ms with polling). - Zero idle CPU (futex-blocked, was 1000 polls/sec). - 1-second timeout safety net for external events not using process-wakeup. - process-wait-with-timeout also converted to condvar. * process-wakeup defined in www-utils (both ports): - LW: delegates to mp:process-poke. - SBCL: signals per-thread condvar. Verified: 68/68 MCP tests on both LW and SBCL. Clean cold compile. H2 and H1.1 serving verified on both ports. 1.9.5 (April 7, 2026) * H2 client async I/O -- event-driven reactor (SBCL): - Client reactor uses process-wait with adaptive backoff, replacing fixed 5ms polling. - Wake latency 0-1ms (was 0-5ms), near-zero in burst via spin-yield phase. 1.9.4 (April 7, 2026) * H2 client resource reuse (portable + SBCL-specific): - Phases 1-3 (portable): H2 client now uses parse-reply on a pooled reply-line buffer, alist specializer on read-headers-into-buffer, and index-based header parsing. SBCL benefits from recompile of portable client/http2.lisp. - Phase 4 (SBCL-specific): All ignore-errors in sbcl/client/http2.lisp replaced with targeted handler-case (stream-error, end-of-file, sb-bsd-sockets:socket-error, type-error). - Phase 5 (SBCL-specific): Request body buffer pooled via defresource h2-client-body-collect-stream. - Phase 6 (portable): h2-buffer-exchange struct pooled via defresource in server/http2.lisp. Verified: H2 client external (nghttp2.org), H2 self-fetch, H1.1 regression. 1.9.3 (April 6, 2026) * Mirror of LW 3.5.9 H2 dispatch unification and reactor cleanup. See the main release notes for full details. SBCL-specific: - handler-bind-if wrap on %reactor-loop gated by *debug-http2-server-reactor*. - handler-bind-if + handler-case-if on %client-reactor-loop gated by *debug-http2-client-reactor*. - Removed 5 ignore-errors wraps in server reactor (:abort, :tunnel-data, :tunnel-end, :shutdown, sb-sys:io-timeout clause) plus 1 in %http2-provide-service's io-timeout clause. - Removed ignore-errors from :shutdown in client reactor. - Fix: set fill-pointer before REPLACE in the string specializer on READ-HEADERS-INTO-BUFFER (SBCL validates :end1 against fill-pointer per ANSI spec; LW validates against total-size). - Forward-declare CL-HTTP-SIGNATURE in server/html4.lisp to suppress SBCL undefined-function warning. Each change applied and tested incrementally (5 steps with H2 verification after each). Full test matrix: H1.1 and H2 server, client self-fetch, 20-way concurrent H2 stress, mixed methods. 1.9.2 (April 4, 2026) * Zellerin http2 v2.0.5 integration (through commit 0a47af6): - Pulled v2.0.5 with http-stream-error now deriving from ERROR (was WARNING), native buffer-pool package, separate header/ payload writes via queue-frame-region, window callbacks merged. - Removed obsolete local patches (buffer-pool-all, write-data- frame-region, process-pending-frames) -- v2.0.5 provides them. Moved to patches/obsolete/ for reference. * H2 client connection reuse bug fixes (silent reactor death): - Added http-stream-error handler in client reactor (v2.0.5 changed WARNING to ERROR, catch-all was killing reactor). - Added close-connection restart in %flush-and-read (Zellerin's core invokes it on connection errors). - Removed stale http2/core::multi-part-data-stream from http2-server-stream and http2-client-stream (class was removed in v2.0.5 when window callbacks were merged). * ssl-error-class handles LW internal :CLOSED keyword: - LW Apple/OpenSSL internals pass :CLOSED (symbol) instead of fixnum for graceful close; now declared (or fixnum symbol) and mapped to ssl-closed / openssl-connection-closed. - Fixes type error during external H2 client connection teardown. * Pseudo-header slots moved upstream to http2/client:client-stream: - method, scheme, authority, path were added to cl-http-client- stream as a workaround for v2.0.5's log-closed-stream calling get-path on any h2-stream. - Proper fix (PR #10 submitted to Zellerin) adds the slots to client-stream in the http2 library itself. Local removal from our subclass restores modularity. * Patch loading now compiles (was interpreting source) and fails visibly (was caught by handler-case that silently disabled H2): - Patches go through %sct-compile-file for staleness tracking. - Load calls moved outside the H2 library error handler so bugs in our patches are not silently swallowed. * Production tree translations self-contained: - Removed devo-tree H2 file overrides from sbcl/translations.lisp. - Production tree now loads its own H2 files independently. * Server H2 and H2 client connection reuse confirmed on both ports against nghttp2.org and local HTTPS endpoints. 1.8.5 (March 31, 2026) * H2 connection pooling via defresource: - Portable reset-http2-connection generic function reverts all Zellerin superclass slots to class-definition defaults via MOP. - Three cached slot categories (default-initargs, initform-only, unbound) auto-detected at load time from class-default-initargs. - h2-server-connection defresource with constructor, initializer, deinitializer. Both ports use allocate/deallocate-resource. * H2 reactor poll interval reduced from 5ms to 0.1ms: - 2.5x latency improvement on LW (11.9ms -> 4.7ms per request). - SBCL H2 persistent now at parity with HTTPS/1.1 (0.7ms/req). - Root cause: reactor slept through mailbox timeout while inbound requests waited on TLS stream. * Portable bug reporting to file (BABYL format): - log-bug-report-to-file writes Emacs RMAIL-compatible messages. - report-bug extended with :file destination in *bug-report-destination*. - *bug-report-pathname* defaults to http:logs;bugs;bug-reports.text. - Moved report-bug and log-bug-report-to-file to http:server;utils.lisp (portable, loads before SMTP). * SBCL logical pathname translations made portable: - All directory roots computed from *load-truename* -- no hardcoded paths. - Works on any machine in any directory layout. * Bug fixes: - simple-string type error in H2 header parsing: header buffer is adjustable with fill-pointer. Changed to string/char (was simple-string/schar). LW's stricter type checking caught this. - defresource constructor accepts &rest args per resource protocol (allocate-resource passes all args to both constructor and initializer). - Paren fixes in sbcl/server/http2-stream.lisp (2 missing close parens). * Benchmarks (March 31, persistent 200 reqs, 24KB): SBCL HTTP/1.1: 0.5ms SBCL HTTPS/1.1: 0.8ms SBCL HTTPS/H2: 0.7ms LW HTTP/1.1: 0.4ms LW HTTPS/H2: 5.3ms Load test: 512/512 requests, 0 failures (both ports, 64 concurrency) 1.8.4 (March 30, 2026) * HTTP/2 v2.0.0 non-blocking MPSC writer architecture: - Server: 64KB buffers, non-blocking submit, interleaved I/O - 65 MB/s for 1MB over H2+TLS (was 7 MB/s, 9x improvement) - At parity with H1.1+TLS across all payload sizes - Zero failures: 4,600 requests at 64 concurrency - Client: interleaved I/O, 5ms timeout, streaming response bodies - Proxy: H2 upstream multiplexing, set-proxy-protocol-version - write-data-frame-region: zero-copy DATA frame sending - Pooled h2-pending-write structs and copy-bytes-buffer - 6 code review fixes, portable header comments updated 1.8.3 (March 26, 2026) * pure-tls error mapping to CL-HTTP SSL conditions: map-tls-error dispatches on 15 pure-tls condition types via typecase. map-tls-alert-to-condition dispatches on 27 TLS alert description codes. Previously all pure-tls errors fell through to generic network-error, losing classification for logging and handler dispatch. * ssl-verification-failure: Added http-status-code-mixin with HTTP status 526. Fixed C3 linearization failure in subclasses (ssl-bad-certificate, ssl-unknown-certificate-authority, ssl-cypher-suite-negotiation-failure) by removing redundant http-status-code-mixin from their direct superclass lists. 1.8.0 (March 20, 2026) * Multi-agent collaboration on a shared runtime (12 new tools): agent metadata, scope declarations, redefinition tracking, transactional hot-patching with rollback, inter-listener messaging, and global event timeline. See http:llm;mcp;release-notes.text for detailed MCP release notes. * Bug fix: pre-eval definition state capture for accurate new-vs-redefinition tracking in the listener eval hook. Total: 122 MCP tools (51 general + 27 listener + 29 LMACS + 5 HTML parser + 10 W4 walker). 1.7.0 (March 16, 2026) * W4 Web Walker MCP Tools (10 new tools). See http:llm;mcp;release-notes.text for details. * Bug fixes: o client/client.lisp: get-relevant-cookies crashed on single-label domains (e.g., "localhost") -- char-position called with NIL end because no dots in hostname. Fixed by guarding the subdomain iteration with WHEN on 1st-idx. o examples/example-exports.lisp: 5 documentation pages referenced from the home page returned 404 (w3p, lir, authentication, proxy, vrml). Added explicit HTML file exports for subdirectory pages not resolved by the recursive /cl-http/ directory export. 1.6.0 (March 15, 2026) * LMACS comment preservation and class hierarchy refactoring. See http:llm;mcp;release-notes.text for details. * HTTP/2 bulk I/O methods -- 8 specialized methods on H2 streams that eliminate byte-by-byte Gray stream dispatch: Write side (response serving): o binary-stream-copy-from-8-bit-array: bulk write from byte arrays and data cache to H2 response via %h2-write-octets-to-buffer o stream-copy-until-eof: bulk write from file stream to H2 response o stream-copy-bytes (to H2): N-byte copy from any source Read side (request body / file upload): o binary-stream-copy-into-8-bit-array: bulk read into byte array o read-delimited-line: MIME boundary parsing for multipart POST o crlf-stream-copy-into-string: POST body to string with CRLF decode o stream-copy-bytes (from H2): N-byte copy to file o stream-decode-crlf-bytes: CRLF-decoded copy from request body All methods use read-sequence/write-sequence with 8KB buffers. Handles non-simple arrays from the data cache by copying through a simple buffer (SBCL's %h2-write-octets-to-buffer requires simple-array). * HTTP/2 reactor poll interval reduced from 0.5ms to 0.1ms (defconstant +http2-reactor-poll-interval+ 0.0001) for lower latency on persistent H2 connections. * HTTPS self-connect deadlock fix: TLS handshake moved off the listener accept thread to a worker thread, preventing stalled handshakes from blocking all new HTTPS connections. * pure-tls stream-listen fix: patched to use sb-sys:wait-until-fd-usable instead of destructive LISTEN on the underlying fd-stream (CLAUDE.md rule #37). * LMACS buffer compiler improvements. 1.5.0 (March 14, 2026) * TLS certificate verification fix: pure-tls auto-load-system-ca did not eagerly populate the trust store. Client HTTPS now uses the system CA bundle file (/etc/ssl/cert.pem on macOS) via find-system-ca-bundle. Verified connections to Google, Anthropic, OpenAI, and xAI APIs. * User-configurable CA path: set http:*system-ca-bundle-pathname* to override automatic CA bundle detection for non-standard systems. * HTTP/2 client reactor fix: inner handler-case isolates transient END-OF-FILE from process-pending-frames so the reactor survives between requests, enabling connection reuse. * HTTP/2 client pool: close network stream on reactor exit so stale connections are detected. Add CONNECTION-LOST retry with %unregister-h2-client-connection in dispatch. * LLM file upload: corrected supported file types per API docs, refactored file-media-type to use CL-HTTP MIME content type registry for extension canonicalization (jpg->jpeg etc.), added json/docx text-read handlers. 1.4.9 (March 12, 2026) * HTTP/2 client enabled for all cloud LLM platforms: o Google: conditionalized http-version to use HTTP/2 when #+http2, added llm-http-version-by-chat-mode streaming methods. o Fixed HTTP/2 host header conflict: %h2-parse-header-text-to-alist now filters the Host header, which duplicates the :authority pseudo-header in HTTP/2. Google rejects connections with both. o Fixed H2 server preface race condition: use blocking read-frame instead of non-blocking process-pending-frames for initial SETTINGS exchange (Google needs ~100ms to respond). o Added invoke-http-service :around method to respect explicit HTTP/1.x version, bypassing H2 dispatch when requested. o Added http:reset-h2-client function combining connection pool close and server HTTP version cache clear for clean testing. o All four cloud platforms (OpenAI, xAI, Anthropic, Google) verified working over HTTP/2 after cold compile. * LMACS: added comment function (classic Interlisp/Maclisp idiom). * Bug fixes: o Fixed "Google Google" typo in platform-pretty-name. o Fixed trailing period in current-llm docstring platform list. 1.4.8 (March 12, 2026) * Documentation: rewritten MCP server page, updated acknowledgments and technical report. * Upstream contributions to third-party cryptographic libraries: o pure-tls PR #8: buffer pool activation bug -- upstream record-layer-read missing WITH-BUFFER-CONTEXT wrapper, making the pool infrastructure dead code. o Ironclad PR #84: octets-to-integer allocation reduction -- processes 7 bytes at a time into fixnum chunks, reducing intermediate bignum allocation from 40KB to ~6KB per 256-byte input (used in every RSA and DH operation). o Ironclad PR #85: Curve25519 ref10 limb arithmetic for SBCL -- radix-2^25.5 representation keeps all intermediate products within 62-bit SBCL fixnums, eliminating bignum allocation in the field arithmetic hot path. * Simplified pure-tls buffer pool patch: o Replaced the full reimplementation (buffer pool, in-place XOR, stack-allocated headers, optimized octets-to-integer) with a minimal patch that activates the upstream buffer pool by adding the missing WITH-BUFFER-CONTEXT wrapper to record-layer-read. o The upstream pool infrastructure (PR #6) provides buffer-pool, pool-acquire, pool-release, and with-buffer-context, but record-layer-read was missing the context wrapper, making *buffer-context* always NIL when read-tls-record checks it. 1.4.7 (March 11, 2026) * MCP streaming response refactoring and compiler tool noise suppression. 1.4.6 (March 11, 2026) * Fixed 5 SBCL allocation bugs -- 66% of HTTP serving allocation eliminated: o Eliminated socket-namestring allocation on stream creation (~3.9% of total allocation per request). o Fixed SBCL OPEN redundant auto-close finalizer allocation in WITH-OPEN-FILE. o Three additional allocation sites identified and reported upstream to SBCL developers. * LispWorks tcp-stream hot path fixnum declarations and define-character-predicate macro for port-specific character predicate optimization. 1.4.5 (March 11, 2026) * Buffer pool patch refined to return exact-sized TLS record fragments. Pool buffers are tier-sized (64B, 1KB, 16KB) but callers expect exact-length fragments; the patch now copies the fragment out at the exact size before returning. 1.4.4 (March 11, 2026) * LMACS s-expression buffer editor integration with recursive debugger. MCP tool count increased to 82. See http:llm;mcp;release-notes.text for details. 1.4.3 (March 10, 2026) * New MCP tool: lisp_analyze_allocation (compiler allocation analysis with cross-port support). 1.4.2 (March 2026) * Adaptive connection thresholds for SMP Lisps (portable): o Raised default *maximum-number-of-connections* from 20 to 200 and *reject-connection-threshold* from 25 to 240 for SMP Lisps (LispWorks, SBCL, Allegro, SCL). Single-core Lisps (Genera, MCL, CMU CL without MP) retain the original conservative defaults. o New variable *reject-connection-base-threshold* tracks the decay target for adaptive adjustment. o New variable *reject-connection-hard-limit* caps adaptive growth at an absolute ceiling (default 1000 for SMP, 50 for single-core). o New function ADJUST-CONNECTION-THRESHOLD adaptively grows the reject threshold by 20% per scavenger cycle when connections reach 80% of threshold with zero idle scavenged, and decays by 10% per cycle when connections drop below 30% of threshold. Called from the periodic idle-connection scavenger with no hot-path overhead. o SET-MAXIMUM-NUMBER-OF-CONNECTIONS now accepts an optional HARD-LIMIT argument and sets all four variables consistently. * Buffer pool for pure-tls record-layer read path: o Region-based allocation context (with-buffer-context) automatically returns all pool-allocated buffers on scope exit via unwind-protect. Eliminates manual buffer lifecycle tracking for TLS record processing. o Replacement read-tls-record stack-allocates the 5-byte TLS record header (dynamic-extent) and pool-allocates the fragment buffer from the three-tier buffer pool (64B, 1KB, 16KB size classes). o Replacement record-layer-read wraps body in buffer context, stack-allocates the 5-byte AAD header, auto-releases encrypted fragments on context exit, and copies out plaintext fragments for handshake records. o Buffer context API: buffer-pool-allocate, buffer-pool-deallocate, buffer-pool-deallocate-all-buffers with check-type assertions and atomic splice-and-release via without-interrupts. o Measured 14.3% allocation reduction (~1.3 MB per HTTPS request) on a server-side TLS workload, with buffer pool reuse confirmed. * HTTP/2 client ALPN negotiation fix: o Default *client-http-version* changed to :HTTP/1.1 for SBCL+HTTP/2 since HTTP/2 is negotiated via ALPN during TLS handshake, not in the HTTP request line. o Added per-host:port version cache (server-http-version-on-port) to avoid re-negotiating HTTP/2 with servers known to support only HTTP/1.x. o Fallback path now passes explicit :HTTP/1.1 version so HTTP/2 framing is never sent over an HTTP/1.x connection. 1.4.1 (March 2026) * Constant-time side-channel fixes for pure-tls: o PKCS#1 v1.5 signature verification (verify-rsa-pkcs1v15-signature) replaced EQUALP hash and prefix comparison with a single IRONCLAD:CONSTANT-TIME-EQUAL call over the full DigestInfo. EQUALP short-circuits on the first differing byte, creating a timing oracle exploitable in Bleichenbacher-style attacks. o ML-KEM-768 decapsulation replaced non-constant-time IF branch with branchless CT-SELECT, satisfying the FIPS 203 Section 7.3 requirement that implicit rejection be indistinguishable from valid decapsulation. o ML-KEM constant-time-equal replaced AND short-circuit on length mismatch with XOR accumulator folding, ensuring the comparison always iterates over all bytes. o New helper functions CT-EQUAL-MASK and CT-SELECT provide branchless byte-vector comparison and selection primitives. o Patches auto-applied on startup via predicate functions that check disassembly for the presence of patched symbols; removed automatically once upstream pure-tls merges the fixes. * Markdown-to-HTML file serving: o Static .md files are automatically converted to HTML and served as text/html when accessed through CL-HTTP. o Generated HTML is cached as .md-html files alongside the source; cache is regenerated only when the source changes. o Directory exports (export-type :directory) auto-export .md files as converted HTML with no explicit configuration. o Loaded automatically as part of the CL-HTTP server system. * Side-channel red-teaming test suite (test/test-side-channel.lisp): o Five-phase analysis: timing tests (Welch's t-test), disassembly audit, source-level code review, allocation profiling, and call graph tracing from TLS entry points through all crypto primitives. o Tests constant-time-equal, X25519, HMAC-SHA256, AES-GCM for timing leaks; profiles allocation in ChaCha20 and X25519; audits PKCS#1, ML-KEM, and Ironclad primitives for data-dependent branches via sb-introspect. 1.4.0 (March 2026) * Complete HTTP/2 method coverage: o OPTIONS and TRACE now dispatch correctly over HTTP/2. Previously returned 501 due to (eql :http/1.1) specializers in invoke-server-method; fixed by widening to (http-version symbol). o HEAD responses suppress body data -- DATA frames are never sent, only HEADERS with END_STREAM. o POST and PUT with request bodies work over HTTP/2 via inbound body streaming (h2-request-body-stream class with bounded queue). o DELETE dispatches correctly (was already working via symbol specializer). * HTTP/2 CONNECT tunneling for proxy service: o Validates :authority pseudo-header, enforces *proxy-connect-allowed-ports* and subnet deny lists. o Opens TCP connection to target, sends 200 HEADERS, and starts a relay thread using direct fd I/O (sb-unix:unix-read/write). o Generic function architecture: defgeneric with default method-not-allowed in the server system; defmethod specialized on http2-server-stream in the proxy system. o Flow control integration: backpressure propagates through the tunnel in both directions. * HTTP/2 trailers (both directions): o Response trailers: handler sets (setf http2-stream-response-trailers) before close; sent as final HEADERS frame with END_STREAM after all DATA frames. o Request trailers: captured via add-header :after when handler-started-p is true; propagated to body stream for handler access after reading body to EOF. * CORS preflight fast path: o OPTIONS requests with Access-Control-Request-Method and Origin headers are handled directly when *h2-cors-policy* is configured, bypassing handler thread pool dispatch. * Bug fixes: o WINDOW_UPDATE flow control uses actual payload size (end - start) rather than full buffer length. o Fixed fill-pointer ordering in %push-body-data: set fill-pointer before REPLACE to satisfy SBCL bounds checks. o HTTP/2 tunnel relay uses sb-sys:wait-until-fd-usable with sb-unix:unix-read instead of listen + read-sequence, avoiding fd-stream buffer interference. o Forward declarations for cross-system functions eliminate all compilation warnings. 1.3.2 (March 2026) * HTTP/2 is now the default protocol for SBCL port. The --http2 flag is no longer needed; use --no-http2 to disable. * Updated release notes and user guide with reactor architecture documentation. 1.3.1 (March 2026) * HTTP/2 proxy relay fixes: o Fixed TYPE-ERROR in symbol coercion for H2 header values. o Fixed dispatch routing for proxied HTTP/2 requests. o Fixed connection parameter handling for H2 proxy streams. 1.3.0 (March 2026) * HTTP/2 reactor architecture (double-buffer exchange): o Per-connection reactor thread handles all HTTP/2 framing, flow control, and multiplexing. o Handler threads communicate with the reactor via a double-buffer exchange: one buffer fills while the other drains to the wire. o Eliminates lock contention between handler threads and the HTTP/2 connection. * HTTP/2 client fixes: stale header clearing, thread-safe connection pooling, reactor crash recovery. * TLS flush and client condition handling improvements. 1.2.1 (March 2026) * Consolidated HTTP/2 dependencies into the standard third-party directory. Removed third-party-local references. * Updated named-readtables and trivial-gray-streams to latest upstream versions. 1.1.0 (March 2026) * HTTP/2 server support via cl-http2 (RFC 9113): o Full HTTP/2 multiplexed stream handling over TLS (h2) o HPACK header compression and decompression o Flow control with WINDOW_UPDATE frames o Server push, GOAWAY, and graceful connection shutdown o Automatic ALPN negotiation: clients requesting h2 get HTTP/2, others fall back to HTTP/1.1 on the same HTTPS port o Transparent integration with CL-HTTP's URL dispatch, response functions, and access control -- existing exports work over HTTP/2 without modification o Per-connection timeout and error handling with bug reporting * HTTP/2 client support: o Automatic protocol upgrade for HTTPS URLs via ALPN o CLOS dispatch on URL class for HTTP/2 vs HTTP/1.1 o Full HPACK header processing for request and response o Compatible with http:show-url, http:copy-file, and the standard client API * HTTP/2 stress hardening: o Survived 5000 requests at 16-way concurrency with zero failures o Dedicated HTTP/2 connection threads (not shared worker pool) o Safety net error handlers with full backtrace logging o Timeout unit normalization across service boundaries 1.0.0 (February 2026) * Initial release of the SBCL port of CL-HTTP 71.0. * Complete HTTP/1.1 server with chunked transfer encoding, persistent connections, and content negotiation. * Complete HTTP/1.1 client substrate with FTP support. * HTTP proxy server with caching, forward proxy, reverse proxy, and SSL/TLS tunnel proxying. * W4 constraint-guided web walker. * TLS 1.3 via pure-tls (pure Common Lisp, no C dependencies): o Server-side HTTPS with define-https-service o Client-side HTTPS with define-client-ssl-control o Mutual TLS (mTLS) with client certificate authentication o Certificate-based access control realms o Dual-path buffer I/O: TLS streams use pure-tls Gray stream methods while plain HTTP uses direct fd syscalls for maximum performance o 20 SSL/TLS condition classes with HTTP status codes for precise error reporting * X.509 certificate support via pure-tls: o Certificate parsing: version, serial number, validity dates, signature algorithm, public key, key usage, extensions o Distinguished name extraction and interning for subject and issuer fields o Extended key usage parsing (RFC 5280) o Netscape certificate type parsing (legacy extension) o NID-keyed name alists for OpenSSL API compatibility o Certificate chain loading and validation o Peer certificate access on TLS streams o Property-list-based value caching for all accessors * High-performance buffered stream I/O: o 8KB internal byte buffers for input and output o Direct fd syscalls via sb-unix:unix-read and sb-unix:unix-write, bypassing SBCL's stream layer o Resource-pooled TCP stream buffers to minimize consing o Integrated UTF-8 encode/decode pipeline with persistent state across buffer boundaries o Chunk boundary tracking at the byte level for efficient HTTP/1.1 chunked transfer encoding * Multi-threaded connection handling: o Process resource pool with condition-variable signaling o Worker threads wait on condition variables (no polling) o Function dispatch via control cell pattern o Named worker threads for debugging * Complete network condition hierarchy matching the LispWorks port: 25+ condition classes covering DNS resolution, local and remote network errors, connection state, timeouts, and protocol errors. * Package-based portability: all SBCL-specific code is isolated in IPC and WWW-UTILS packages. The portable HTTP server code (~12,000 lines) runs unmodified with no #+sbcl conditionals. * sct-defsystem compatibility layer providing the same system definition interface as the LispWorks port, with cascading recompilation to maintain class layout consistency across compiled files. * Model Context Protocol (MCP) server providing 50+ interactive development tools via JSON-RPC 2.0 over HTTP. See http:llm;mcp;release-notes.text for detailed MCP release notes. * Comprehensive test suite: 300 SSL/TLS tests across 4 test suites (dual-path buffer I/O, X.509 certificates, server SSL, client SSL), plus compilation tests, UTF-8 tests, JSON tests, and HTTP server end-to-end tests. * Full HTML generation: HTML 2.0, Netscape 1.1/2.0/3.0/4.0, HTML 3.2, HTML 4.0, HTML 5, XHTML 1.0, RSS 2.0, JavaScript. * W3P presentation system for structured data rendering. * SMTP mail client for sending email from the server. * SHA-2 implementation for digest authentication. Caveats * TLS 1.3 only: pure-tls supports only TLS 1.3. Clients requiring TLS 1.2 or earlier will not be able to connect to the HTTPS server. All modern browsers and HTTP clients support TLS 1.3. * SBCL process-wait uses condition variables and short sleeps rather than a scheduler-integrated wait as on LispWorks. This has no observable performance impact but may differ in behavior under extreme thread contention. * The #u reader macro interns URLs at read time using the current standard HTTP port. When changing the server port, set-standard-http-port must be called before loading any files that use #u.