From 630f735a28eca8c6cd4b64ac7e38abe6634a0698 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Mon, 10 Mar 2014 22:54:28 -0700 Subject: libxrdp: send, get, and use multi fragment max caps --- libxrdp/xrdp_fastpath.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libxrdp/xrdp_fastpath.c') 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; } -- cgit v1.2.3