Got a request to implement the IDLE command into my CF Workers IMAP lib. That would mean keeping the TCP connection alive for longer periods of time.
From what I understand Cloudflare bills based on CPU time, rather than the total time it took for the Worker to finish, so in terms of billing it shouldn't be sky high.
The problem is that it is definitely not the use case for a Worker (well, the exact opposite really). Theoretically, though, after what time would the worker process be terminated?