10-24-2009, 01:29 PM | #1 |
Member
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
Incorrect proxy detection on Windows [0.6.19]
Hi,
I'm running Calibre 0.6.19 on Windows, and I have a problem with the proxy detection. Calibre thinks that I have a proxy defined: Code:
C:\Program Files\Calibre - E-book Management>calibre-debug -c "from calibre import get_proxies; print get_proxies()" Unable to detect proxy settings: need more than 1 value to unpack Using proxies: {'http': 'proxy:8080', 'https': 'proxy:8080'} {'http': 'proxy:8080', 'https': 'proxy:8080'} To be precise, Calibre is reading from HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ProxyServer [or perhaps HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings], but is ignoring HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyEnable. For some reason, the proxy server is defined in both HKCU and HKLM, but ProxyEnable only exists in HKLM. Note that with 0.6.18, I didn't have this problem (since it read from the environment variable http_proxy), but it did have a problem parsing the format I gave (http://proxy:8080/). I think that for Windows, following the IE proxy settings is probably more correct, even though personally I prefer environment variables. |
10-24-2009, 01:46 PM | #2 |
creator of calibre
Posts: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As far as I know, proxy settings should be read from HKCU not HKLM, see for example
http://blogs.technet.com/heyscriptin...xy-server.aspx |
Advert | |
|
10-25-2009, 12:13 AM | #3 |
Member
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
could be, but my experience suggests that when toggling the proxy on/off, only HKLM is affected. In fact, I just tried this with a new windows install [well, not new, but one never configured to use a proxy] and saw the same thing
|
10-25-2009, 11:15 AM | #4 |
creator of calibre
Posts: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What software are you using to toggle the proxy?
|
10-26-2009, 12:42 AM | #5 |
Member
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
Originally I was using something in-house from my company, but I also tried using the Windows "Internet Options" dialog
|
Advert | |
|
10-26-2009, 10:56 AM | #6 |
creator of calibre
Posts: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
OK open a ticket for it and I'll investigate when I have some time.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 0.6.14 incorrect publish date | elmoglick | Calibre | 16 | 02-09-2011 02:24 PM |
sorry, still about proxy | Valio | Calibre | 1 | 11-06-2009 10:13 AM |
application configuration incorrect | Willo142 | Calibre | 2 | 09-15-2009 12:35 PM |
Incorrect Date on Input | kazbates | Calibre | 2 | 03-19-2009 12:08 AM |
Proxy authentication problems (I have no proxy) | fogus | Calibre | 16 | 03-08-2009 01:27 PM |