[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-print
Subject: Re: new kprinter doesn't start any more
From: Michael Goffioul <goffioul () imec ! be>
Date: 2002-06-19 9:02:08
[Download RAW message or body]
> > weird, this corresponds to a "Bad request" error. However, at that point, KDEPrint
> > only tries to open a connection, nothing is sent through the socket.
>
> This hint helped. I was then able to think of what could cause it.
>
> As you know, I am using regularly LD_PRELOAD to load the "transconnect"
> library (Thanks to your suggestion long ago). This helps me to cross the
> passdword-enabled proxy here and use cvs, irc etc. LD_PRELOAD is called
> from the .bashrc. of users kdehead
> and kde4.
>
> If I do "unset LD_PRELOAD" everything seems to work fine. (But I don't see the
> little new splash screen I had before....)
This is normal, the splash screen only appears after 500ms, so if the
connection is established directly, you don't see anything.
> But up to now, kprinter (and kjobviewer and kcmshell printmgr...) are the
> only apps which seem to have problems.....
>
> Can you think of a solution?
>
> The CONNECT call of tconn.so seems to reach the cupsd, but it then seems to
> react with "SendError() 3 code=400"....
I digged into socket code of Qt, and discovered that when you ask Qt to
connect to a host, it tries to connect twice (this happens if the connection
is established immediately, like for localhost). The first time, it uses
the correct address 127.0.0.1:631, but for some obsure reasons the second
time it uses 0.0.0.0:631 (will send a mail on kde-devel for that). This
address is usually not covered by tconn.conf as a local address, such that
tconn think it has to use a proxy, which means a real HTTP request,
and that's probably why you get a "Bad request" error from the CUPS server.
The workaround is to add this line to your tconn.conf:
localnet 0.0.0.0/255.255.255.255
I tried here and it works OK now.
Bye.
Michael.
--
------------------------------------------------------------------
Michael Goffioul IMEC-DESICS-MIRA
e-mail: goffioul@imec.be (Mixed-Signal and RF Applications)
Tel: +32/16/28-8510 Kapeldreef, 75
Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
_______________________________________________
kde-print mailing list
kde-print@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-print
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic