Dear Leonardo, The RFC 1179 document, which defines the LPR/LPD protocol, mentions a special case where the file size of a file to be sent by an LPR client is unknown. It is allowable for the LPR Client to list the file size as zero bytes (unknown) in the control file being sent with the data file.
If an LPD supports zero byte file sizes from LPR Clients, it means that it has a mechanism for opening a TCP raw socket port connection from the LPR Client, for receipt of the inbound data, which it can terminate either via an inactivity timeout value or via intelligent parsing of the data being received for a printer language based end of file delimiter. The RFC document specifies that support of zero byte file length is optional for LPD server services. In a previous posting to the LPRng mailing list, I saw Patrick make a quick mention about LPRng having support for zero byte file length spool files. I don't remember whether he said the default was to have the support enabled or disabled inside LPRng. It is very likely that your Novell problem could be related to LPRng having the zero byte file support turned on. In this scenario, your Novell gateway would receive a confirmation to begin sending the file to LPRng. If the zero byte file is actually an error condition on the Novell gateway, I can imagine that the LPRng message giving permission to proceed might cause an error on the Novell side. Hopefully someone else, who may have used this LPRng feature in the past, can tell you where in the configuration of LPRng you can disable the support for zero byte file size support. After making this change, you should get the same result from your Novell gateway using LPRng as you do with the Berkley LPD. HTH Best Regards, /Paul -- Paul Tykodi National Product Manager Intermate US Inc. p: 603-431-0606 x115 f: 603-436-6432 E-mail: [EMAIL PROTECTED] www.intermate.com >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of >Leonardo C. Filho >Sent: Monday, May 06, 2002 9:45 PM >To: [EMAIL PROTECTED] >Subject: Re: LPRng: Netware (lpr_gwy) + LPRng > > >Hello, > >> I am puzzled. You say that the 'lpr_gwy' program is dying? >> And that it is getting a '0 length file'? > >lpr_gwy's the netware module that sends print jobs to a >unix lpd. when I'm using berkeley lpd sometimes >I see in the netware console the message "... will not be sent. >reason: file ___ is of zero lenght". >if I switch to lprng the server won't print this message anymore, >but instead, abends lpr_gwy. > >> But WHY is it trying to send a 0 length file? >Good question.. I couldn't find an answer too. > >> I suspect you have a Novell problem here, and that the symptom is when >> LPRng sends a 'Sorry, do not accept 0 length jobs' error back to the >> Novell gateway that the Novell gateway dies. > >That's exactly the problem. Is LPRng using the same "language" as berkeley >LPD, when sending this error message? I think netware understands a LPD >error, but not a LPRng one. > >> You should contact Novell and get the latest release of the lpr_gwy >> that does not have these problems. > >I'm using the latest version and when we contact their support, they say >"oh, you're running an unsupported OS." > >Thanks for your reply, >Leonardo > ---------------------------------------------------------------------------- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. ---------------------------------------------------------------------------- - ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
