contimeout option of socket backend

André Hänsel andre at webkr.de
Mon May 17 09:32:32 PDT 2010


>
> On May 17, 2010, at 7:46 AM, Andr=C3=A9 H=C3=A4nsel wrote:
>
> > Hi list,
> >=20
> > I need to employ a timeout on my socket connections (because I need =
> dynamic addresses re-resolved).
> >=20
> >> =46rom looking at the source =
> (http://svn.easysw.com/public/cups/trunk/backend/socket.c) I know that =
> there is a "contimeout" option that defaults to 1 week.
> >=20
> > However, when I try to enter a device URI like =
> socket://printer:9100?contimeout=3D30 I get a "Bad device-uri" error.
>
> You need a slash between the port number and URI options, e.g.:
>
>     socket://printer:9100/?contimeout=3D30

I see. I already suspected such but I googled this page (http://www.cups.org/documentation.php/network.html) where it says "socket://ip-address-or-hostname:port-number?waiteof=false", that's why I didn't try it with a slash.




More information about the cups mailing list