mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
RuntimeApiServerTest.extensionRegister_racedAgainstStop_eventuallyDeliversShutdown flaked intermittently with an EOFException from the JDK HTTP/2 client, surviving #2156's fix for the write-vs-close ordering bug. stop() already waits for each parked write's flush to complete before closing the httpServer, but that only confirms the bytes were locally flushed, not that the peer received them before the connection is torn down - multiplexed HTTP/2 stream-completion bookkeeping on the same connection can still race that close. Real AWS's Runtime/Extensions API is plain HTTP/1.1; nothing here needs HTTP/2. Disabling h2c removes the class of multiplexed-connection races entirely and the JDK HttpClient falls back to HTTP/1.1 automatically, no client-side change required. Fixes #2180.