Skip to content

Reset HTTP parser for new transport generations - #183

Open
kentbull wants to merge 1 commit into
ioflo:mainfrom
kentbull:fix/http-parser-generation-reset
Open

Reset HTTP parser for new transport generations#183
kentbull wants to merge 1 commit into
ioflo:mainfrom
kentbull:fix/http-parser-generation-reset

Conversation

@kentbull

@kentbull kentbull commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

What

  • Add Parsent.reopen() as the explicit transition to a new transport generation.
  • Reset the response parser after successful manual Client reopen.
  • Use the same transition for automatic reconnect and cross-origin redirect connector replacement.
  • Exercise all paths with real HIO Clients, Servers, accepted connections, and sockets.

Why

A new socket must not inherit the prior socket's parser object or terminal state. Making that boundary explicit is also a prerequisite for later making EOF monotonic within one parser generation.

Portability

This adapts GLEIF-IT#20 to current upstream main. It is independent of the open producer-settlement and Responder-reuse PRs.

Fixes #182.

Add an explicit parser reopen transition and invoke it after successful manual reopen, automatic reconnect, and cross-origin connector replacement. Exercise each path with real HIO clients, servers, accepted connections, and sockets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTP response parser is not reset for a new transport generation

1 participant