Comment 4 for bug 601551

Revision history for this message
Vincent Ladeuil (vila) wrote :

I agree with Martin's analysis, having encountered the issue in tests.

The fix can be trivial (record the connection and its credentials in a 'finally' clause) but its fallouts are unclear:
some exceptions mean that the connection has been closed by the server in which case the credentials may
or may not be valid and the next connection may or not reuse them. Now, it may be worth checking that the
*credentials* have been validated and record them even if the connection has already been lost.