Xdebug is a great idea, and if it doesn't help, I'd also recommend running your webserver through ktrace, strace or truss. It shows you exactly what it does and where it could be hanging.
It sounds like there is a temporary connectivity issue, or something else that your application relies on is blocked.
In case you use Apache, please check the Apache HTTP Debugging Guide. The guide is a bit *nix-centric, but can be applied to any webserver.
On top of debugging your webserver, I'd also recommend adding checks if your proxy is up/responsive at all times and the download source is always available. Those checks could be added using a tool like nagios or a 3rd party service like Pingdom. Last but not least, it could be a temporary DNS issue as well so you could go about using IPs to connect to the proxy and the download source and/or add monitoring for the DNS service.
HTH