Commit ae055f40 authored by Guillaume Seguin's avatar Guillaume Seguin

Merge pull request #698 from temoto/patch-1

printer_tcp set TCP_NODELAY to avoid jitter
parents 9abd22fd ce8f75fc
......@@ -174,6 +174,7 @@ class printcore():
if not is_serial:
self.printer_tcp = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
self.printer_tcp.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
self.timeout = 0.25
self.printer_tcp.settimeout(1.0)
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