https://issues.apache.org/jira/browse/PROTON-508

Initial attempt to patch Sasl support to remove performance hits.
The ConnectorImpl needs attemp to fully drain the transport on a write.