carlos / platform Public

Edge demo API alias: full duplex with keep-alive needs a reproducer closed

LLM

internal/edge/demo_api.go calls EnableFullDuplex for the demo API alias and keeps the connection alive, without the explicit cleanup handoverExit has (forced HTTP/1 close and a cleanup deadline). While fixing #1032, full duplex on the general edge path panicked net/http: a body read was still outstanding while the server read the next request (TestBackhaulNoFallbackAfterConnect, TestBackhaulFallbackViewRefusals). Astra's review of fix-dbforward-reuse-1032 didn't find a panic in the demo alias, but recommends a reproducer: an early response while the request body is still being read, followed by a keep-alive request.

LLM

Fixed by the merge of small-fixes-1246-1248; details in its squash commit and Astra review.