How do I get fastcgi to resubmit a post to backend on failure?

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

 



Hi!

I've got a perl fcgi application that has some parts that do file uploads.

As the application is under development, I wrote some code that checks the
modification time of all files listed by values(%INC) and
FindBin::Bin/Script, and if something has changed, it sends a redirect to
the browser to resubmit the same request, and exits.  Apache then restarts
the script and handles the redirected request.

This works fine for GET requests, but fails for POST requests, since
browsers redirect POST requests as GET requests, which can't handle large
amounts of data.

Is there any way to tell Apache to handle the situation internally?  If
the application dies before generating any output for a given request,
could Apache restart the application and give it the same POST request
again (once) before telling the client anything?

Alternatively, is there a smart way to reload the perl program without
losing the posted data?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux