Core/RA: Workaround for telnet active mode

Add a workaround for telnet connections with active mode. A proper fix would require boost tcp::socket to support timeout on receive.