AnnShinoy has asked for the wisdom of the Perl Monks concerning the following question:

I am getting a Read timed out exception while executing a java program that calls a Webservice from perl. The perl is linked to the IIS and it maintains the contact with the webservice based on the value configured in CGITimeout. How can I override this limitation?

Replies are listed 'Best First'.
Re: Exception from perl
by Anonymous Monk on Jan 02, 2012 at 11:23 UTC
      Even using a background process is not helping much. The IIS stops that too it seems. I have added the line my $proc1 = Proc::Background->new("java -jar......"); Can some one tell me that if this alone will invoke the background process and do I have to check for any other conditions? This IIS configuration is really irritating. Can we override this CGITimeout attribute? What is the purpose of this attribute?

        Even using a background process is not helping much. The IIS stops that too it seems.

        I don't believe it :)

        I have added the line my $proc1 = Proc::Background->new("java -jar......"); Can some one tell me that if this alone will invoke the background process and do I have to check for any other conditions?

        Why? Didn't it work when you tried it?

        This IIS configuration is really irritating. Can we override this CGITimeout attribute?

        Sure (but don't ask me how) :) it wouldn't be a configuration option otherwise, and it would be a spectacularly stupid webserver that didn't allow overriding configuation values

        What is the purpose of this attribute?

        to prevent runaway processes -- if it spending minutes doing something, 99/100 its a mistake