Push relay: answer the browser before the server does (ihasmail #72) #92

Merged
jcoffey-dev merged 1 commits from fix/relay-headers-now into main 2026-11-14 21:41:33 +00:00
Owner

Port of coffey-labs/ihasmail#72, reported in coffey-labs/ihasmail#71.

The upstream sends no headers on its event stream until the first ping, 30 seconds in, and the relay waited for that before answering the browser, so the live-updates dot sat on "reconnecting" for at least that long on every connect. Both relay paths now send headers and a : relay comment straight away.

Port of coffey-labs/ihasmail#72, reported in coffey-labs/ihasmail#71. The upstream sends no headers on its event stream until the first ping, 30 seconds in, and the relay waited for that before answering the browser, so the live-updates dot sat on "reconnecting" for at least that long on every connect. Both relay paths now send headers and a `: relay` comment straight away.
jcoffey-dev added 1 commit 2026-11-14 21:38:18 +00:00
Push relay: answer the browser before the server does (ihasmail #72)
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m48s
ci / announce (pull_request) Skipped
6def126ea9
The upstream sends nothing on its event stream, not even response
headers, until its first ping, 30 seconds in. The relay waited for that
before answering the browser, so the live-updates dot showed
"reconnecting" for half a minute on every connect, and a proxy that
gives up on a response that slow kept it there for good.

Both relay paths now send their headers and a comment line at once, and
end the stream if the upstream fails.

Reported in coffey-labs/ihasmail#71.

(cherry picked from commit 3ad9e2e96725d2e518663e90513d586a1f41a3d1)
jcoffey-dev merged commit e79f1bd7bf into main 2026-11-14 21:41:33 +00:00
jcoffey-dev deleted branch fix/relay-headers-now 2026-11-14 21:41:33 +00:00
Sign in to join this conversation.