I've run into a weird bug with a little game management app I tinker
on. It's an HTML5 canvas app with a good bit of server interaction via
AJAX using jQuery. I've run into a case where a particular AJAX call
is taking a good 5 seconds to fire the success callback, but according
to the server logs and according to Firebug, the HTTP response arrives
in a matter of tens to hundreds of milliseconds.

As far as I can tell, there's only one AJAX call that exhibits this
behavior. I do not get this behavior using the built-in rails3
development server. I do get this behavior consistently across at
least both Safari and Firefox. I haven't yet tried deploying to an
alternate production server to see if the problem is isolated to
heroku, but figured I'd at least cast this pod to the wind first and
see if anyone has experienced anything similar.

I debugged jquery proper to see what was going on internally. The
onreadystatechange callbacks for state 1, in Firefox, then 2 and 3 in
both Firefox and Safari fire quickly, while the state 4 doesn't fire
until 4-5 seconds have elapsed, which suggests that jquery isn't part
of the problem.

Any suggestions would be greatly appreciated. I'm about ready to give
up the hunt and code a workaround, but I hate not understanding what's
going on.

- donald

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to