FreeRDP/xrdp — pull request #39 by LawrenceK (2012-10-18 10:45:14+00:00)
Title: Bug/xrdp orders text

This makes changes in two places. The primary one is to correct the max_Size passed by xrdp_orders_text to xrdp_orders_check it was assuming small amounts of text.

The second was to not skip sending data when the buffer size was greater than an arbitrary limit in xrdp_orders_check. I cannot see a reason for the 16000/8000 limits and wonder whether they are a sticking plaster to solve this same problem.

Background:
The problem can be seen intermittently when going from Win7 to Win2008 via XRDP. Open a large text file in notepad, use a small font and maximise to get large amounts of text on the screen and then page back and forth or search for something latter in the file. The aim is to get a large amount of text updates being sent. The error appears to the user as a protocol error. Valgrind was very useful in tracking this down.