You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/02/06 14:24:50 UTC

[GitHub] [netbeans-tools] matthiasblaesing commented on pull request #43: Implement a proxy chooser for the Update Centers

matthiasblaesing commented on pull request #43:
URL: https://github.com/apache/netbeans-tools/pull/43#issuecomment-774485194


   Thank you for having a look. It is a bit more sophisticated:
   
   - First the main download server is checked if an `update.xml.gz` for the target version is present. The file is not fetched, but only a HEAD request issued to check if the file is present. The check happens here: https://github.com/apache/netbeans-tools/blob/8d8fa220d5482427ca381fdcf1724f09b5b04007/proxy-chooser/updates.php#L268. This information is used as an indicator to use the mirror network. The updates.xml.gz used as base is read from the local file.
   - If the file is not not on the download server, the archive is checked (again a HEAD request): https://github.com/apache/netbeans-tools/blob/8d8fa220d5482427ca381fdcf1724f09b5b04007/proxy-chooser/updates.php#L269. If the file is present again the local file is used to serve the updates.xml.gz.
   - If a CI build (again check via HEAD request) is found, the updates.xml.gz from the build is used. I admit, this is a hack, but IMHO a hack on the same level as the redirects in .htaccess. I thought about parsing the .htaccess in the version folder, but that seemed similar unstable as directly checking the target systems.
   
   The `updates.xml.gz` is cached locally to reduce strain on the target servers and the VM.
   
   What am I missing?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists