DanielLeens opened a new pull request, #13530:
URL: https://github.com/apache/seatunnel/pull/13530

   Yes, this contributes to Apache SeaTunnel.
   
   ### Purpose
   
   Add an inbound RFC 6455 WebSocket server Source. The existing client Source 
introduced in #12465 initiates outbound connections; this adds a separate 
`WebSocketServer` identity. Related history is #13452. Existing client 
reconnect work and the client Sink in #13522 retain their ownership and 
behavior.
   
   ### Changes
   
   Add an independent listener, source factory/options, mapping and bilingual 
documentation inside the existing installed `connector-websocket` artifact. A 
dedicated E2E artifact and its aggregator entry isolate server tests. The 
production dependency graph, shared runtime and existing client code stay at 
the baseline. The only POM changes are the new E2E leaf and its direct parent 
registration, within the approved module boundary.
   
   The JDK-based listener validates path, Host, Origin, optional masked Bearer 
credentials, HTTP upgrade and client frames. TLS 1.2/1.3 uses JKS or PKCS12 key 
material. Complete raw binary/text, schema-based UTF-8 delimited text and 
single JSON objects become records. Masking, fragmented UTF-8, interleaved 
control frames, close codes and nonminimal lengths are checked. Peer count, 
workers, queue count/bytes, message size and absolute protocol deadlines are 
bounded. Queue pressure closes the sending peer with 1013, and cancellation 
closes listener and peer sockets.
   
   ### Corner-case coverage authored
   
   Six real-engine E2E scenarios use independent raw socket/TLS clients and 
exact PostgreSQL rows: rejected upgrades and malformed frames; 
binary/empty/fragmented UTF-8 with ping/pong/close; TLS hostname and typed 
JSON; typed delimited messages; connection ceilings, deadlines and 
cancellation; savepoint/rebind with a held fragment; and queue pressure 
followed by reconnect and persisted recovery. A focused component test covers 
FIFO and byte/count admission boundaries. TLS key material is generated in CI.
   
   ### Validation and limits
   
   Scoped Spotless apply/check using `-nsu -Dmaven.gitcommitid.skip=true`, 
tracked/new-file and staged whitespace checks, POM XML, registration, license, 
documentation/options and exact-file/hash inspection passed. Compilation, 
generated SPI, packaging, component tests and E2E execution are **pending 
GitHub CI**. No local build, functional test, container, service, fixture or 
engine job ran.
   
   The listener is live and in-memory on one worker. Checkpoints retain 
assignment only; queued and incomplete messages can be lost on disconnect, 
failure or shutdown. Protocol success does not acknowledge downstream 
persistence. Senders own durable replay and downstream deduplication, and 
restored placement can change. Broader parser families and 
application-generated reply workflows are outside this implementation. No 
runtime-validation or merge-readiness claim is made.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to