Virtual-ZPL-Printer icon indicating copy to clipboard operation
Virtual-ZPL-Printer copied to clipboard

Fix TCP ZPL Template partial read

Open SebHeuze opened this issue 1 year ago • 0 comments

In the current version, the TCP Listener does not wait for all data to be sent by the client.

The client is a Java application with the Zebra library, the zebra library send the data splitted in 1024 chunk and wait 20ms between chunks.

The Virtual ZPL Printer seems to read 1024 bytes, then see that no data is available and close the connexion, it then show #60 because the ZPL Template is incomplete. Instead, it should wait (until timeout )for data to come from the client or close the connection if the end of the template ("^XZ") is received

After this modification the problem disappear

SebHeuze avatar Jun 13 '24 16:06 SebHeuze