Hi
I am embedding latex markup in book nodes and then generating the pdf files from it on the server. My books have become large so that the LaTeX processing takes quite long. Everything works perfectly for small books without any problems.
On the edit form I have a radio button for the user to select if they want to generate the pdf file - it just runs a small function in my module which makes a system call similar to:
system("files/latex/make_pdf_file.sh $filename");
For long compiles I get a blank white screen back after clicking submit. I have logged into the server and noticed that the script to make the pdf files is still running after the blank screen has shown up. I can see the static blank screen - type ls on the server and see no pdf file - wait a minute then ls again and the pdf file is there.
So my reasoning is that my little system call somehow takes too long and I am getting the first part of the drupal headers back but then somehow things get confused. The url for the blank screen is still the edit page: http://domain.name/?q=node/444/edit so refreshing to pressing enter just takes me back to the edit page even though the script did complete in the end.
I am not even sure where to start looking for a solution to this, is it something I can handle in drupal, or in php settings or would apache need modifications?
AJAX calls to the function occurred to me but I am not that adept yet but I think that could be a way out.