Commit ce8f75fc authored by Sergey Shepelev's avatar Sergey Shepelev

printer_tcp set TCP_NODELAY to avoid jitter

parent 9abd22fd
...@@ -174,6 +174,7 @@ class printcore(): ...@@ -174,6 +174,7 @@ class printcore():
if not is_serial: if not is_serial:
self.printer_tcp = socket.socket(socket.AF_INET, self.printer_tcp = socket.socket(socket.AF_INET,
socket.SOCK_STREAM) socket.SOCK_STREAM)
self.printer_tcp.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
self.timeout = 0.25 self.timeout = 0.25
self.printer_tcp.settimeout(1.0) self.printer_tcp.settimeout(1.0)
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment