Skip to content

sse and multipart reconnection timeout for unresponse servers - #4099

Open
MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:sse-connect-timeout
Open

MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:sse-connect-timeout

Conversation

@MichaelWest22

@MichaelWest22 MichaelWest22 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

sse and multipart reconnections do not get the default connection timeout applied which means if the server fails to respond properly the connections can be left pending and never reconnect or try again. So we need to set a timeout here but this timeout may need to be shorter than the normal htmx default timeout of 60s. So I've added a new connectionTimout config for sse/multipart that defaults to the htmx default timeout but can be overriden if required.

Corresponding issue:
#4072

Testing

Added tests

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@MichaelWest22 MichaelWest22 added the htmx 4 Issues specific to htmx version 4 label Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

htmx 4 Issues specific to htmx version 4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant