Dear All,
I don't know if this is a bug or a feature but it may be of interest.
There are a couple of values in lpd.conf that control timeouts. They
are: send_job_rw_timeout and send_query_rw_timeout. The one I have been
experimenting with is send_query_rw_timeout. We have a queue which can
get quite big (over 3000 jobs). When I do an lpq on it, sometimes I get
absolutely nothing back. By setting the send_query_rw_timeout value to
some large number or even zero that problem goes away. All quite reasonable
I think.
The problem is that the lpq command indirectly spawns an lpd process to
get the queue information. This process continues running even though the
lpq process has timed out. The problem is that the queues get pretty big.
When one of our users does an lpq command, an lpd process is started. After
a short while the lpq process dies and since there was no output they issue
the command again. The same thing happens again and again and again (yes we
do have that sort of user as well). Eventually they do give up and some time
later all the lpd processes go away.
Now there are two problems with this. The first is more a query really. Since
the lpd process has broken the connection to the lpq becaues of the timeout
wouldn't it be better for the lpd to die as well. There is little point in
it carrying on since it can't send its results anywhere after that.
The second problem is caused by that. I can send the main lpd process a
SIGHUP signal to get it to reread its config files or I can do it with
an lpc reread all. However, if a subordinate lpd process has been left
hanging around because of the scenario described above the SIGHUP signal
regardless of where it came from causes the main lpd process to die.
Best wishes....
Colin
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------