libxrdp: send, get, and use multi fragment max caps

This commit is contained in:
Jay Sorg
2014-03-10 22:54:28 -07:00
parent 6f63f93890
commit 630f735a28
3 changed files with 22 additions and 1 deletions
+8 -1
View File
@@ -101,7 +101,14 @@ xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
int APP_CC
xrdp_fastpath_init(struct xrdp_fastpath *self, struct stream *s)
{
init_stream(s, 32 * 1024);
int bytes;
bytes = self->session->client_info->max_fastpath_frag_bytes;
if (bytes < 32 * 1024)
{
bytes = 32 * 1024;
}
init_stream(s, bytes);
return 0;
}