Skip to content

v1.2.2

Choose a tag to compare

@tarasovd tarasovd released this 05 Apr 17:20
· 107 commits to main since this release
320ca44

Patch release fixing abrupt host connection teardown when the proxy is restarted.

Fixes

  • proxy: createProxy().close() now drains live host connections before closing the HTTP server. The SIGTERM/SIGINT handler in server.ts previously called close() which only stopped the HTTP listener — active TN5250/TN3270/VT/HP6530 sockets were abandoned and reaped by the OS, resulting in TCP RST rather than a clean FIN.

    On IBM i this left virtual telnet device descriptions stuck in VARY ON PENDING. Subsequent sign-on attempts from device-restricted user profiles would land on the next device in the pool, fail with CPF2241/CPF1110 "Not authorized to work station", and after enough retries trip CPF1116 which locks the profile out entirely.

    Drain covers all three holders: REST sessions in the session store, live WS SessionControllers, and orphaned controllers. Adopted controllers (WS reattaches to a REST-owned Session, introduced in 1.2.1) are skipped — the Session owns their handler and is drained separately.

Packages

  • green-screen-types: 1.2.1 → 1.2.2
  • green-screen-react: 1.2.1 → 1.2.2
  • green-screen-proxy: 1.2.1 → 1.2.2
  • green-screen-terminal: 1.2.1 → 1.2.2 (dep on green-screen-proxy bumped to ^1.2.2)
  • green-screen-client: 1.2.1 → 1.2.2 (version-only, for monorepo lockstep)

No API changes. green-screen-client and green-screen-react functionality is unchanged from 1.2.1 — the fix is isolated to the proxy shutdown path.