def sync(self):
self.send()<EOL>detail_count = summary_count = <NUM_LIT:0><EOL>while self.responses:<EOL><INDENT>response = self.responses[<NUM_LIT:0>]<EOL>while not response.complete:<EOL><INDENT>detail_delta, summary_delta = self.fetch()<EOL>detail_count += detail_delta<EOL>summary_count += summary_delta<EOL><DEDENT><DEDENT>return detail_count, summary_count<EOL>
Send and fetch all outstanding messages.

        :return: 2-tuple of number of detail messages and number of summary messages fetched