Ajax

Hello,

Has anyone had any issues using Ajax, PHP-fpm and ajax ? I’m finding
ajax
requests to be very very slow and sometimes timing out.

What sort of things in the nginx log should I be looking for to try and
debug
this please ?

Thanks

In my error log I am getting a LOT of these:

2008/09/23 16:01:06 [error] 27889#0: *208252 upstream timed out (110:
Connection
timed out) while reading response header from upstream,

2008/09/23 10:54:05 [warn] 27888#0: *147154 an upstream response is
buffered to
a temporary file /usr/local/nginx/fastcgi_temp/6/01/0000000016

BTW I am using:

fastcgi_buffers 32 8k;

And these messages also:

a client request body is buffered to a temporary file

for the client request body buffered you might look at
http://wiki.codemongers.com/NginxHttpCoreModule#client_body_buffer_size
and for the timeouts its saying that php timed out on the request. So
you
might look into seeing if anything is happening in the ajax php script
that
is being ran causing the timeout.

I think is all dependent on your hardware and everything else. But what
is
the full size of you body that the browser is receiving? that should
give
you a more relevent size as to what to put it at.

Hi Rob,

Thanks for your reply.

I have that currently set to:

client_body_buffer_size 256k;

Is it ok to push it to say 512k ? I get the impression from the docs
that 256 is
a lot already.

A gzip’d fullpage is around 60Kb. So the buffer size is what it is
sending to
the client, not vice versa ? As I thought AJAX would only effect the
data sent
in the request from the client.