Re: fopen and load balancing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 11, 2013 at 10:11 AM, Adam Tong <adam.tongu@xxxxxxxxx> wrote:
> On Mon, Feb 11, 2013 at 4:26 AM, marco@xxxxxxxxxx <marco@xxxxxxxxxx>
> wrote:
> >
> >
> > Adam Tong <adam.tongu@xxxxxxxxx> hat am 10. Februar 2013 um 23:41
> > geschrieben:
> >> Hi,
> >>
> >> We had an issue with the code of a junior php developer that used
> >> fopen to load images using the url of the companies website that is
> >> load balanced.
> >>
> >> We could not the detect the problem in dev and test because the dev
> >> and test servers are not load balanced.
> >>
> >> I know that he could load the images using just the filesystem, but I
> >> am curious to know why it failed and if the load balancer is really
> >> the source of the problem or it is a limitation on the function
> >> itself.
> >
> > Do you have any error messages for us?
> > If the load balancer accessable from the internal servers? Normally it
> > is not.

>
> I think this is what happened. As the application was trying to open
> our url domain the request was sent to the load balancer, and as it
> does not accept internal requests, the connection was timed out.
>
> The only way we could avoid that is to not use fopen our url, is that
> right?
>
>

Yeah, sure. That's as good of a guess as any of us will be able to
conjure up. Since you've given us no details, no code and no error
messages, we're basically relegated to blind guessing. I don't think
that's what you want, so if you still have a question, I suggest you
start by investigating the relevant logs. If you can't figure out the
issue from there, post _relevant_ snippets to the list.

Also remember that this is the PHP mailing list. (Even though we tend
to masquerade as the MySQL list from time to time) If it's an issue
with your very likely non-PHP load balancer, we can't really help you
out.

--Sean Greenslade

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux