GitHub user mike-jumper opened a pull request:
https://github.com/apache/guacamole-server/pull/133
GUACAMOLE-484: Ensure disconnect reason code is checked for orderly RDP
disconnect.
This change shifts the RDP disconnect handling logic down such that the
disconnect reason code is always checked if `freerdp_shall_disconnect()`
reports that an orderly disconnect is occurring.
`GUAC_PROTOCOL_STATUS_UPSTREAM_UNAVAILABLE` is still used for lower-level
failures (where it is correct).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mike-jumper/guacamole-server rdp-error-code
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/guacamole-server/pull/133.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #133
----
commit d562cb7648ab228cdd5d8ab528ee8804faba2d20
Author: Michael Jumper <mjumper@...>
Date: 2018-01-22T20:16:09Z
GUACAMOLE-484: Ensure disconnect reason code is checked for orderly RDP
disconnect.
commit 61c16a89d2def4457ba5198d599c0c2218ee35ec
Author: Michael Jumper <mjumper@...>
Date: 2018-01-22T20:23:39Z
GUACAMOLE-484: Always clean up after orderly disconnect.
commit 822a6c6b9dcc278c55ac3dd13c13c78ff1402acc
Author: Michael Jumper <mjumper@...>
Date: 2018-01-22T20:24:07Z
GUACAMOLE-484: Do not flush frame if connection closed mid-frame.
----
---