How to prevent rare cases where RO HTTPS call hangs

On rare occasions we have a RO client (that uses a HTTPS connection) hangs in a call.

It gets stuck in Receive functions. See screenshot.

Is there a way to prevent this (apart from killing the thread and respawning it)?

What is your suggested approach?