RIF: Request timeouts

"Giunta Gaetano" <[email protected]> Sat, 6 May 2006 22:58:08 +0200
Newsgroups gmane.comp.php.xml-rpc
Message-ID <[email protected]>
Setting the script timeout to a value bigger than your expected =
communication is of cousre a good idea. Using zero (or -1, I cannot =
remember) means that the script is allowed to run taking all the time it =
needs, which might be a sensible option.

The 'max input time' should have no influence at all on behaviour of the =
script, as far as I can tell.

The only other parameter you will need to set is the timeout in the send =
method of the client.
The connection timing out after 60 secs is in fact a clear indicator of =
that: the default socket timeout of php being 60 seconds.

There might be a bug in the library, but I tested it quite extensively =
with servers that just output a character every 60 seconds, and it =
seemed to work well.

To investigate further I should have more info about your platform: =
which version of phpxmlrpc/php/os are you using? Are you using http11 or =
https as protocol?

Note taht there is a known bug on windows platform with old releases of =
php that did not allow to set a socket timeout above 60 secs. In that =
case the only option would be to upgarde your php install.

Bye
Gaetano

-----Messaggio originale-----
Da:	[email protected] per conto di Jeff Tupholme
Inviato:	sab 5/6/2006 0:21
A:	<[email protected]> =
<[email protected]><[email protected]>
Cc:=09
Oggetto:	[phpxmlrpc] Request timeouts
Hi,

I'm having problems with a long-running complex query to my XML-RPC=20
server timing out. Initially I was getting the PHP error 'Maximum=20
execution time of 30 seconds exceeded', so I changed=20
'max_execution_time' in php.ini to 60 and that went away.

However, it was replaced with a message of 'No response received from=20
server', which appeared after exactly 60 seconds. I tried increasing=20
'max_execution_time' again but to no avail, and I've also tried=20
changing 'default_socket_timeout' and even 'max_input_time' up to 90=20
but still get the same result after 60 seconds. Therefore I think it's=20
being constrained by something else.

I'm not specifying a timeout in my client send method, but I also tried=20
that at 90 with no change. I'm running the client from the command=20
line. If I change the values I pass to the method to make the=20
underlying query simpler and quicker it works.

Any ideas what I really need to change to allow my long query to=20
complete, please?


Thanks,

Jeff

_______________________________________________
phpxmlrpc mailing list
[email protected]
http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc