On Thu, Sep 3, 2020 at 1:49 PM alonp <[email protected]> wrote:

> mjumper wrote
> ...
> Do you know of any reason to avoid handling the
> "CHANNEL_EVENT_WRITE_COMPLETE", and release the stream once it received?
>

Perhaps, but:

* Care needs to be taken to ensure we remain compatible with older releases
of FreeRDP that *do* automatically free the wStream.
* If allocating the wStream from FreeRDP's pool would result in the
automatic free behavior, it's probably worth considering leveraging that
wStream pool when it's available.
* Unless there is a reason to not handle the free
within guac_rdp_common_svc_write(), I think that would be a better place.
* If there is a reason to not handle the free within
guac_rdp_common_svc_write() and we cannot rely on automatic free via
FreeRDP's internals, I would guess that the free would also need to be done
for CHANNEL_EVENT_WRITE_CANCELED.

- Mike

Reply via email to