Skip to content

Raw socket gets data, but does not send data to printer #331

@zdohnal

Description

@zdohnal

Describe the bug
Printing via raw socket does not work, because file is not sent to the device. This current behavior was seen when using lprint, but probably all PAPPL based printer applications are affected.

To Reproduce
Steps to reproduce the behavior:

  1. start lprint server with -o server-options=raw-socket
  2. install a printer via http://localhost:8000 - Zebra GK420t in my case (driver ZPL, 4inch, 203dpi)
  3. check services on mDNS, f.e. via avahi-browse -avrt on Linux:
=     lo IPv4 zebra                                         _pdl-datastream._tcp local
   hostname = [fedora-home.local]
   address = [127.0.0.1]
   port = [9101]
   txt = ["Scan=F" "PaperMax=<legal-A4" "Fax=F" "product=(Zebra ZPL 4-inch/203dpi/Direct-Thermal)" "priority=100" "qtotal=1" "txtvers=1" "Duplex=F" "Color=F" "UUID=cbf40622-39e6-3048-6ec7-0e9171137724" "pdl=image/pwg-raster,image/urf,application/vnd.zebra-zpl,application/vnd.lprint-test,image/jpeg,image/png" "note=" "adminurl=http://fedora-home.local:8000/zebra/" "ty=Zebra ZPL 4-inch/203dpi/Direct-Thermal"]
  1. send file via netcat
$ netcat 127.0.0.1 9101 < <zpl file>
  1. Nothing is printed

Expected behavior
Printer-ready file will be printed

System Information:

  • OS: Fedora Linux 39
  • Browser Firefox
  • lprint 1.2.0
  • pappl 1.4.4

Additional context
Attaching debug log from lprint and packet capture between my machine and printer - first it is attempt to send the file via lprint raw socket, then, after approx. 10s, I sent the same file directly to the printer via netcat. I can see in the log that the file is sent to the destination in both cases, but no activity after that in lprint case.

lprint.pcap.txt
lprint-raw.log.txt

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions