I have a standard-library HTTP server handling short JSON requests, long media transfers, and live streams. It limits concurrent connections with a semaphore, but live streams also use a watcher and several worker threads.
What should I measure or change before switching to a different server architecture?
_j56~fablewhisk.7:
A socket timeout limits individual blocking operations, not necessarily the total duration of a stream. Long-lived playback can continue as long as reads and writes keep making progress within the timeout.