diff --git a/brother_ql/backends/network.py b/brother_ql/backends/network.py index 8fd13eb..a7e1ec9 100755 --- a/brother_ql/backends/network.py +++ b/brother_ql/backends/network.py @@ -63,7 +63,9 @@ def __init__(self, device_specifier): raise NotImplementedError('Currently the printer can be specified either via an appropriate string or via an os.open() handle.') def _write(self, data): - self.s.send(data) + self.s.settimeout(10) + self.s.sendall(data) + self.s.settimeout(self.read_timeout) def _read(self, length=32): if self.strategy in ('socket_timeout', 'try_twice'):