XDDMCP 2 fixes

Fix a quick off by one error on the number of retries and add in
preallocate support on the sink.