#NEWLINE# def send( self , data ) : #NEWLINE# #INDENT# '\n        Keep calling SSLSocket.write until the entire message has been sent\n        ' #NEWLINE# while ( len ( data ) > 0 ) : #NEWLINE# #INDENT# if self . ssl_ca_file : #NEWLINE# #INDENT# sent = self . sock . write ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sent = self . sock . send ( data ) #NEWLINE# #UNINDENT# data = self [ sent : ] #NEWLINE# #UNINDENT# self . connect_wait = BACKOFF_INITIAL