hmmm, in hosts, is localhost defined? and in MCC > hardware, > printer,> cups 
configuration, did you allow auto Cups Configuration? or does it have an IP 
or name? maybe the easiest _answer_ would be to remove the current cups 
printer and then "add new printer" but that sounds so mickysoft.


On Friday 10 January 2003 12:04 am, Pierre Fortin wrote:
> My local parallel attached printer takes over a minute to start printing
> jobs.  Here's part of strace on xpp...  my question is WHY should CUPS be
> trying to access my gateway to print locally.  There is nothing in
> printerdrake that takes an IP address for a local printer.  Even
> printerdrake takes a long time to get its info...  what gives??
>
> To get a more complete trace, I did:
> $ ps aux | grep xpp
> pfortin  29339  0.0  0.0     0    0 ?        Z    23:27   0:00 [xpp
> <defunct>]
> pfortin  30031  2.5  0.5  5584 2788 ?        S    23:50   0:00 xpp
>
> The defunct process was from the previous print job...
> send(5, "POST / HTTP/1.1\r\n", 17, 0)   = 17
> send(5, "Content-Length: 202\r\n", 21, 0) = 21
> send(5, "Content-Type: application/ipp\r\n", 31, 0) = 31
> send(5, "Host: localhost\r\n", 17, 0)   = 17
> send(5, "\r\n", 2, 0)                   = 2
> time(NULL)                              = 1042174357
> send(5, "\1\1\0\v\0\0\0\1", 8, 0)       = 8
> time(NULL)                              = 1042174357
> send(5, "\1G\0\22attributes-charset\0\niso-8859"..., 34, 0) = 34
> time(NULL)                              = 1042174357
> send(5, "H\0\33attributes-natural-language\0\5"..., 37, 0) = 37
> time(NULL)                              = 1042174357
> send(5, "E\0\vprinter-uri\0\33ipp://localhost/"..., 43, 0) = 43
> time(NULL)                              = 1042174357
> send(5, "B\0\24requested-attributes\0\25printer"..., 79, 0) = 79
> time(NULL)                              = 1042174357
> send(5, "\3", 1, 0)                     = 1
> recv(5, "HTTP/1.1 200 OK\r\nDate: Fri, 10 J"..., 2048, 0) = 2048
> time(NULL)                              = 1042174357
> [snip]
> time(NULL)                              = 1042174357
> brk(0x80be000)                          = 0x80be000
> time(NULL)                              = 1042174357
> recv(5, "iptI\0\0\0\33application/vnd.cups-ras"..., 1714, 0) = 1714
> brk(0x80bf000)                          = 0x80bf000
> brk(0x80c0000)                          = 0x80c0000
> time(NULL)                              = 1042174357
> uname({sys="Linux", node="gypsy.pfortin.com", ...}) = 0
> close(5)                                = 0
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> gettimeofday({1042174357, 791686}, NULL) = 0
> time(NULL)                              = 1042174357
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
> fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
> setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> connect(5, {sin_family=AF_INET, sin_port=htons(631),
> sin_addr=inet_addr("192.168.1.1")}}, 16
>
> #####stalls here....
>
> ) = -1 ETIMEDOUT (Connection timed out)
>
> #####well DUH!!  The gateway is a LinkSys router -- no port 631
>
> close(5)                                = 0
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> gettimeofday({1042174546, 789969}, NULL) = 0
> socket(PF_UNIX, SOCK_STREAM, 0)         = 5
> connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1
> ENOENT (No such file or directory)
> close(5)                                = 0
> open("/etc/hosts", O_RDONLY)            = 5
> fcntl64(5, F_GETFD)                     = 0
> fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
> fstat64(5, {st_mode=S_IFREG|0644, st_size=192, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0x40014000
> read(5, "192.168.1.1\t\tr41.pfortin.com r41"..., 4096) = 192
> read(5, "", 4096)                       = 0
> close(5)                                = 0
> munmap(0x40014000, 4096)                = 0
> time(NULL)                              = 1042174546
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
> fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
> setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> connect(5, {sin_family=AF_INET, sin_port=htons(631),
> sin_addr=inet_addr("127.0.0.1")}}, 16) = 0
> send(5, "POST / HTTP/1.1\r\n", 17, 0)   = 17
> send(5, "Content-Length: 202\r\n", 21, 0) = 21
> send(5, "Content-Type: application/ipp\r\n", 31, 0) = 31
> send(5, "Host: localhost\r\n", 17, 0)   = 17
> send(5, "\r\n", 2, 0)                   = 2
> time(NULL)                              = 1042174546
> send(5, "\1\1\0\v\0\0\0\1", 8, 0)       = 8
> time(NULL)                              = 1042174546
> send(5, "\1G\0\22attributes-charset\0\niso-8859"..., 34, 0) = 34
> time(NULL)                              = 1042174546
> send(5, "H\0\33attributes-natural-language\0\5"..., 37, 0) = 37
> time(NULL)                              = 1042174546
> send(5, "E\0\vprinter-uri\0\33ipp://localhost/"..., 43, 0) = 43
> time(NULL)                              = 1042174546
> send(5, "B\0\24requested-attributes\0\25printer"..., 79, 0) = 79
> time(NULL)                              = 1042174546
> send(5, "\3", 1, 0)                     = 1
> recv(5, "HTTP/1.1 200 OK\r\nDate: Fri, 10 J"..., 2048, 0) = 2048
> time(NULL)                              = 1042174546
> [snip]
> time(NULL)                              = 1042174546
> recv(5, "iptI\0\0\0\33application/vnd.cups-ras"..., 1714, 0) = 1714
> time(NULL)                              = 1042174546
> uname({sys="Linux", node="gypsy.pfortin.com", ...}) = 0
> close(5)                                = 0
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> gettimeofday({1042174546, 797427}, NULL) = 0
> time(NULL)                              = 1042174546
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
> fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
> setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> connect(5, {sin_family=AF_INET, sin_port=htons(631),
> sin_addr=inet_addr("192.168.1.1")}}, 16
>
> #####stalls here again...
>
> After timeout, printer starts printing...  trace got scrolled too fast to
> capture; but it doesn't matter since the real question is WHY should CUPS
> go outside the box to print to a LOCAL printer??
>
> Pierre (really tiring of all the problems I'm running into on 9.0 -- no, I
> don't complain about everything since it's been quicker to fix & continue)


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to