removed poll lock and corrected inbound buffer handling