Commit Graph

4 Commits

Author SHA1 Message Date
Torsten Harenberg
dfca7ed80c Fix data loss on TCP reconnect:
1. Fixed ByteFIFO (fifo.go): Changed Dequeue(), DequeueOrWait(), and DequeueOrWaitContext() to always copy() data into a new byte slice instead of just slicing the buffer.
  2. Fixed TCP server logic (tcpserver.go): Changed the send goroutine to poll for data availability (without dequeueing) using GetLen(), then sleep briefly to batch incoming data,
  and finally dequeue all available data at once. This avoids the race condition where we were splitting dequeue operations and losing bytes in between.
2025-10-30 09:34:50 +01:00
Torsten Harenberg
fb72775735 updated README, avoid gooutinges for TCP handling, force disconnects when client is gone. 2025-10-26 17:49:59 +01:00
Torsten Harenberg
4ed3ce9b10 missing error handling added 2025-02-28 14:59:31 +01:00
Torsten Harenberg
255137345f first commit in new repo 2025-02-02 19:19:16 +01:00