Polling

Anonymous anonymous at easysw.com
Tue Mar 15 13:18:44 PST 2005


> > Hi!
> >
> > I try to use Polling a Printer over VPN. The result should be that I can
> > see the printer pointing my browser to http://localhost:631/printers.
> > But this is not the case.
> > I am able to see the whole webinterface of the remote machine and the
> > desired printer also.
> >
> > I enabled Polling and the Polling Daemon is starting on localhost:
> >
> > StartPolling: Started polling daemon for 192.168.2.9:631, pid = 8522
> > StartPolling: Adding fd 2 to InputSet...
> > StartServer: Adding fd 3 to InputSet...
> > AddCert: adding certificate for pid 0
> >
> > On the remote side, the polling daemon answers:
> >
> > [access_log]
> >
> > 192.168.2.8 - - [13/Dec/2004:20:42:05 +0100] "POST / HTTP/1.1" 200 271
> >
> > which is quite better than error code 403 and
> >
> > [error_log]
> >
> > ReadClient: 5, used=0, file=-1
> > ReadClient: 5 POST / HTTP/1.1
> > decode_auth(0x40342008): Authorization string = ""
> > decode_auth: 5 username=""
> > IsAuthorized: con->uri = "/"
> > FindBest: uri = "/"...
> > FindBest: Location / Limit 7f
> > FindBest: Location /jobs Limit 7f
> > FindBest: Location /printers Limit 7f
> > FindBest: Location /admin Limit 7f
> > FindBest: best = "/"
> > IsAuthorized: auth = 0, satisfy=0...
> > POST /
> > CONTENT_TYPE = application/ipp
> > ReadClient: 5 con->data_encoding = length, con->data_remaining = 271,
> > con->file = -1
> > ProcessIPPRequest(0x40342008[5]): operation_id = 4005
> > get_printers(0x40342008[5], 1)
> > ProcessIPPRequest: 5 status_code=1
> > ProcessIPPRequest: Adding fd 5 to OutputSet...
> > WriteClient: Removing fd 5 from OutputSet...
> > select_timeout: 22 seconds to send browse update
> >
> > I do not know how to interpret this. Is there an obvious error? Any
> > suggestions?
> >
> > Thanx
> > Felix
>


I can't say anything about your log, but I am using polling and it works well.  All I did was add my server name to the client.conf file:

Servername server.domain.com

, and restart CUPS.  The rest was automatic.  within a microsecond, I could see all my servers printers, lpstat.cups -a ,

It worked much better then broadcasting because of the routers/bridges etc..




More information about the cups mailing list