Hello,

It seems there is a regression between version 1.8.1 and [r1798]

using version 1.8.1 towards a RDS farm of 2 Windows 2012 servers (using round robin DNS), I always get redirected to the correct server:

(sometimes with the message "PDU 10")

:~/test_RDS/rdesktop-1.8.1# ./rdesktop -u login -p password -d domain -z -k fr -a 16 rdsfarm.domain
Connection established using SSL.
NOT IMPLEMENTED: PDU 10
disconnect: Disconnect initiated by user.

(and sometimes not :)

:~/test_RDS/rdesktop-1.8.1# ./rdesktop -u login -p password -d domain -z -k fr -a 16 rdsfarm.domain
Connection established using SSL.
disconnect: Disconnect initiated by user.

However using the latest code from SVN [r1798], I get sometimes redirected to the "wrong" server :

This time, it redirected me to the second server (without my environment) :

:~/test_RDS/rdesktop-code-1798/rdesktop/trunk# ./rdesktop -u login -p password -d domain -z -k fr -a 16 rdsfarm.domain
Connection established using SSL.
Redirected to deybachfl@10.XX.XX.XX session -735518346.
Connection established using SSL.
disconnect: Disconnect initiated by user.

And here I get to the correct one:

:~/test_RDS/rdesktop-code-1798/rdesktop/trunk# ./rdesktop -u login -p password -d domain -z -k fr -a 16 rdsfarm.domain
Connection established using SSL.
disconnect: Disconnect initiated by user.

Cheers