summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_fastpath.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-03-10 22:54:28 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-03-10 22:54:28 -0700
commit630f735a28eca8c6cd4b64ac7e38abe6634a0698 (patch)
tree421ca2e7e2af7b2499ac6d0bdc6ec7c68378e43a /libxrdp/xrdp_fastpath.c
parent6f63f93890c3d16b1a6016cc5097853f4158e968 (diff)
downloadxrdp-proprietary-630f735a28eca8c6cd4b64ac7e38abe6634a0698.tar.gz
xrdp-proprietary-630f735a28eca8c6cd4b64ac7e38abe6634a0698.zip
libxrdp: send, get, and use multi fragment max caps
Diffstat (limited to 'libxrdp/xrdp_fastpath.c')
-rw-r--r--libxrdp/xrdp_fastpath.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c
index 9ba171f0..e9c2b82e 100644
--- a/libxrdp/xrdp_fastpath.c
+++ b/libxrdp/xrdp_fastpath.c
@@ -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;
}