Skip to content

Fjage modernization - #409

Draft
notthetup wants to merge 17 commits into
masterfrom
fjage-modernization
Draft

Fjage modernization#409
notthetup wants to merge 17 commits into
masterfrom
fjage-modernization

Conversation

@notthetup

Copy link
Copy Markdown
Collaborator

No description provided.

@notthetup
notthetup changed the base branch from container-improvements-3 to master June 14, 2026 12:53
@notthetup
notthetup changed the base branch from master to container-improvements-3 June 14, 2026 12:54
notthetup and others added 13 commits June 15, 2026 14:17
… interrupt status

fix(websocket): ensure outThread is not null before closing
Replace the fire-and-forget sendString() write path in both WebSocket
connectors with a per-connection WebSocketWriter that:

- keeps exactly one async write in flight per endpoint (Jetty's limit),
  draining the next frame only after the prior callback fires, so frames
  are no longer dropped on WritePendingException or delivered out of order;
- bounds the outbound queue (backpressure) and disconnects a client whose
  backlog overflows;
- arms a per-write watchdog, only while a send is in flight, to reap a peer
  that has stopped draining its socket.

None of these block the shared OutputThread, so one slow/dead client can no
longer stall delivery to others. Removes the now-redundant Thread.sleep(10)
pacing from both output loops.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@notthetup
notthetup force-pushed the container-improvements-3 branch from 90d7a5e to 3271787 Compare June 15, 2026 06:18
notthetup and others added 4 commits June 15, 2026 14:18
- BlockingByteQueue: use notifyAll() and add awaitEmpty(timeout)
- PseudoOutputStream: expose awaitEmpty(timeout)
- TcpHubConnector: drain via awaitEmpty instead of polling sleep
- SerialPortConnector: guard against concurrent close() nulling com

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@notthetup
notthetup force-pushed the fjage-modernization branch from 319a95f to 8176a6d Compare June 15, 2026 06:18
@notthetup
notthetup force-pushed the container-improvements-3 branch 4 times, most recently from ab6bfbd to 044fd57 Compare July 8, 2026 11:54
@notthetup
notthetup force-pushed the container-improvements-3 branch 2 times, most recently from f28f7a1 to 2bd312a Compare July 21, 2026 05:42
Base automatically changed from container-improvements-3 to master July 21, 2026 07:28
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.

1 participant