pub fn get_socket_receive_timeout(socket: CSocket) -> Result<Duration>
Extracts and returns a timeout for reading from the socket.