> From [EMAIL PROTECTED] Fri Sep 19 04:27:29 2003
> Date: Fri, 19 Sep 2003 10:28:28 +0100
> To: [EMAIL PROTECTED]
> From: Angie Saxton <[EMAIL PROTECTED]>
> Subject: Re: LPRng: serial port blues - solution
>
> Dear All,
>
> We may have found a solution (not flow control)... It does appear to be a 
> timing issue with closing the port. One of the chaps in the office 
> suggested a sleep command, and I have one in the "if" filter now prior to 
> the :cl: evaluation. This has allowed me to print the larger test file. If 
> this sorts the problem I will post again to confirm.
>
> Kind regards
>
> Angie

Ahhh.... This makes sense now!  Try the following:

   /*  do a 'half close' on socket when sending job to remote printer */
{ "half_close", 0,  FLAG_K,  &Half_close_DYN,0,0,"=1"},

In the printcap file put:

lp:half_close@:...

or
lp:half_close=0:...

This will cause the TCP/IP connection to be 'closed' rather than
'shutdown'.  The difference is that LPRng will be unable to monitor for
error messages coming back after the 'close' operation,  but I gather
that you don't care about this.

Patrick

-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to