From owner-freebsd-stable Wed Oct 28 23:39:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA15615 for freebsd-stable-outgoing; Wed, 28 Oct 1998 23:39:09 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from ns.nitek.ru (nitek.east.ru [195.170.63.240]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA15589; Wed, 28 Oct 1998 23:38:39 -0800 (PST) (envelope-from igor@nitek.ru) Received: from igor (igor.nitek.ru [192.168.1.10]) by ns.nitek.ru (8.8.4/8.8.5) with ESMTP id KAA05021; Thu, 29 Oct 1998 10:37:39 +0300 (MSK) Message-Id: <199810290737.KAA05021@ns.nitek.ru> From: "Igor Sysoev" To: " Cc: Subject: Fatal bug in 2.2.5R's lpd Date: Thu, 29 Oct 1998 10:42:35 +0300 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, some time ago I found that 'ct' doesn't work at all at least in lpq. I'd searched mail lists and found mail from Joerg Wunsch: ---------- Date: Fri, 7 Nov 1997 23:39:01 -0800 (PST) From: Joerg Wunsch To: announce@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Fatal bug in 2.2.5R's lpd Message-ID: <199711080739.XAA29381@freefall.freebsd.org> When merging the new `ct' printcap functionality into 2.2-stable right before 2.2.5-RELEASE was due, it's now apparent that I didn't test it enough before. :-( I've introduced a fatal bug that causes all the lpd children sending jobs to remote printers to be killed after the `ct' timeout, even in case the connection came up properly. For small jobs, you won't notice this immediately (the default timeout is 120 seconds, and modern printers can print a lot within this time), but large jobs will ultimately be aborted then. Sorry for the inconvenience. For those of you who do need to operate on remote printers, please either do upgrade to the latest 2.2-stable, or apply the patch below, rebuild and reinstall your lpd. Sorry again, Joerg ---------------- When I try to list queue on turned off remote LaserJet with JetDirect card lpq hangs up for 75 seconds nevertheless ct value I set or even default ct value - 120 seconds. I found it when Windows 95 froze on same time while trying to print or list queue on this printer connected through Samba when printer was turned off. I tried it on FreeBSD 2.2.7. To test it you can simply make dummy remote printer entry in printcap like me: lj|LaserJet 4 with JetDirect:\ :lp=:\ :rm=lj:\ :rq=raw:\ :sd=/var/spool/output/lj504:\ :sh:ct=30:\ :lf=/var/log/lpd-errs: and try to lpq it. with best regards, Igor Sysoev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message