https://bugzilla.novell.com/show_bug.cgi?id=381280
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=381280#c2
Duncan Mac-Vicar changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jkupec@novell.com
Version|Beta 1 |Beta 3
--- Comment #2 from Duncan Mac-Vicar 2008-05-21 09:37:44 MST ---
I made some progress here.
By adding a repo the _first time_ we don't now the type yet, so on the frst
refresh, only the probing is still doing a head request. Those are the 3 first
requests, but 4..n now don't have head request, and the 404 s inmediately
handled as don't exist.
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "HEAD //repodata/repomd.xml HTTP/1.1" 200 0 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "GET //repodata/repomd.xml HTTP/1.1" 200 1240 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "HEAD //repodata/repomd.xml HTTP/1.1" 200 0 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "GET //repodata/repomd.xml.asc HTTP/1.1" 200 189 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "GET //repodata/repomd.xml.key HTTP/1.1" 200 2173 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "GET //repodata/repomd.xml HTTP/1.1" 200 1240 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:14
+0200] "GET /repodata/primary.xml.gz HTTP/1.1" 200 84998 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:02:15
+0200] "GET /repodata/updateinfo.xml.gz HTTP/1.1" 200 4534 "-" "ZYpp 4.25.0
(curl 7.16.4)"
The first and following times the repo changes completely (or we simulate a
forced refresh), we need don't need to probe anymore, so you can see that
repomd.xml is get once to see if the repo changed. Then the request are the
ones expected (except for repomd.xml)
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:05
+0200] "GET //repodata/repomd.xml HTTP/1.1" 200 1240 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:05
+0200] "GET //repodata/repomd.xml.asc HTTP/1.1" 200 189 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:05
+0200] "GET //repodata/repomd.xml.key HTTP/1.1" 200 2173 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:05
+0200] "GET //repodata/repomd.xml HTTP/1.1" 200 1240 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:06
+0200] "GET /repodata/primary.xml.gz HTTP/1.1" 200 84998 "-" "ZYpp 4.25.0 (curl
7.16.4)"
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:03:06
+0200] "GET /repodata/updateinfo.xml.gz HTTP/1.1" 200 4534 "-" "ZYpp 4.25.0
(curl 7.16.4)"
The next times the repo does not change. You only get one request.
2001:780:101:a00:20f:feff:fe5d:ca52 piscola.suse.de - [21/May/2008:17:04:51
+0200] "GET //repodata/repomd.xml HTTP/1.1" 200 1240 "-" "ZYpp 4.25.0 (curl
7.16.4)"
So
1) I consider the head request on probing unimportant, as only happens once in
the lifetime of the repository, and only when adding urls of unknown type.
2) I think the duplicate retrieval of the repomd.xml can be optimized, but I am
not sure if is possible, will look further. I will commit the current progress
for now.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.