From owner-freebsd-questions@FreeBSD.ORG Sat Jul 1 16:44:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AF9616A4DA for ; Sat, 1 Jul 2006 16:44:12 +0000 (UTC) (envelope-from sigsegv@radiotube.org) Received: from mail.itconnect.no (mail.itconnect.no [80.89.32.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB4D4420B for ; Sat, 1 Jul 2006 16:40:56 +0000 (GMT) (envelope-from sigsegv@radiotube.org) Received: from enterprise.localnet.radiotube.org (enterprise.radiotube.org [80.89.53.15]) by mail.itconnect.no (8.12.11.20060308/8.12.11) with ESMTP id k61GelSh010674 for ; Sat, 1 Jul 2006 18:40:47 +0200 Received: from [10.53.4.10] (endeavour [10.53.4.10]) (authenticated bits=0) by enterprise.localnet.radiotube.org (8.13.6/8.13.6) with ESMTP id k61GemN2007837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 1 Jul 2006 18:40:48 +0200 (CEST) (envelope-from sigsegv@radiotube.org) Message-ID: <44A6A58F.7090602@radiotube.org> Date: Sat, 01 Jul 2006 18:40:47 +0200 From: Jan-Espen Pettersen User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200606301737.32015.rainer.heesen@gmx.de> <44A6A3D5.9020607@radiotube.org> In-Reply-To: <44A6A3D5.9020607@radiotube.org> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAB1B789F58A5ADB71676D1E3" X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on enterprise.localnet.radiotube.org X-Scanned-By: MIMEDefang 2.56 on 80.89.53.15 X-ITCMAIL-MailScanner-Information: Please contact the ISP for more information X-ITCMAIL-MailScanner: Found to be clean X-MailScanner-From: sigsegv@radiotube.org Subject: Re: CUPS, USB printers & "Permission Denied" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sigsegv@radiotube.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 16:44:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAB1B789F58A5ADB71676D1E3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > The problem is that read operations on usb printers might just > block/hang with no data from the printer (?). ulpt doesn't have > non-blocking I/O, so I've made a patch that simply times out read > operations, and disables further reads if it detects a blocking/stall > condition. It is possible that this breaks the back-channel, as I'm > unsure if we can expect a printer to send inbound data before we > actually write anything out? > > It looks like there are similar problems with other backends? I've only= > looked at the usb backend yet. > > =20 Sorry, the attachment got cleared by mailman. http://www.radiotube.org/patch-backend_usb-unix.c Put it into /usr/ports/print/cups-base/files if you would like to test it= =2E --------------enigAB1B789F58A5ADB71676D1E3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEpqWQH90qNYni6VoRAhg7AKC9BQkn8howRi2LldoVZdLjIvwhYwCfeHCX poPwyBJ59hT3F7KpkIM9qgU= =3ytx -----END PGP SIGNATURE----- --------------enigAB1B789F58A5ADB71676D1E3--