expand buffer size and add debug info for iOS rdpsnd