def raw_write(self, items, start_cb=None, end_cb=None, fail_cb=None, synchronous=True): """ make sure we don't enable asynchronous mode until the other end is read """ if not self.asynchronous_send_enabled: synchronous = True Protocol.raw_write(self, items, start_cb, end_cb, fail_cb, synchronous)
def raw_write(self, packet_type, items, start_cb=None, end_cb=None, fail_cb=None, synchronous=True, _more=False): """ make sure we don't enable asynchronous mode until the other end is read """ if packet_type != "udp-control" and not self.asynchronous_send_enabled: synchronous = True Protocol.raw_write(self, packet_type, items, start_cb, end_cb, fail_cb, synchronous)