3 ms·
Yeah, some servers close connections when there’s no data transfer. When the backend holds the connection while polling the database until a timeout occurs or t
by rednafi 2y ago
Yeah, some servers close connections when there’s no data transfer. When the backend holds the connection while polling the database until a timeout occurs or the database returns data, it needs to send something back to the client to keep the connection alive. I wonder what could be sent in this case and whether it would require special client-side logic.
- mhitza 2y agoIn the HTTP model, technically status code 102 Processing would fit best. Though, no longer part of the HTTP specification. https://http.dev/102 https://http.dev/102 100 Continue could be usable as a workaround. Would probably require at a bare minimum some extra integration code on the client side.