sliemeobn / ipp-nio

Internet Printing Protocol (IPP) implementation for Swift based on swift-nio.
https://swiftpackageindex.com/sliemeobn/ipp-nio/main/documentation
Apache License 2.0
9 stars 1 forks source link

Increased maxResponseBytes to avoid NIOTooManyBytesError #1

Closed Clafou closed 3 months ago

Clafou commented 3 months ago

Calling getPrinterAttributes to request "printer-description", "job-template" and "media-col-database" (as per example at https://www.pwg.org/ipp/ippguide.html#querying-the-printer-attributes ) on Simulated InkJet results in an NIOTooManyBytesError. Raised the hardcoded max value to 1 MB instead of 20 KB and made it an optional param.

sliemeobn commented 3 months ago

thanks!