You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Review] Reviewing #1570: Support for Support for SSE and NDJSON (#1805)
Reviewing `Streaming Support for SSE and NDJSON (used for LLMs)` in #1750.
**Next steps**:
- Outlined in this comment: #1570 (review)
**Reproducing this locally (after running localnet)**:
```bash
make send_relay_path_REST
make pocketd_relayminer_relay_JSONRP
```
**Changes made**:
- Updated the LocalNet toolchain to make it easier to test REST & LLM services
- Added `make pocketd_relayminer_relay_JSONRPC` and revived `make send_relay_path_REST`
- Reviewing streaming RelayMiner changes in [#1570](#1570) for code health & maintainbility
- Moved logic from `sync.go` into `server.handleHttp` to follow a similar pattern as `server.handleHttpStream`
---
The image below shows the result in LocalNet:
<img width="3552" height="1527" alt="Screenshot 2025-09-30 at 8 10 22 PM" src="https://github.com/user-attachments/assets/bcf9b2dc-5560-4ab4-b06f-c1ebdfaaaa93" />
---
Co-authored-by: Ramiro Rodriguez Colmeiro <[email protected]>
// Timeout settings optimized for quick failure detection
105
105
TLSHandshakeTimeout: 5*time.Second, // Fast TLS timeout since handshakes typically complete in ~100ms
106
-
// ResponseHeaderTimeout: 5 * time.Second, // Header timeout to allow for server processing time. TODO: This affect custom, long, timeouts. This needs to be modified when larger timeouts are needed.
107
106
108
107
// Performance optimizations
109
108
DisableKeepAlives: false, // Enable connection reuse to reduce connection overhead
0 commit comments