Tuesday, May 25, 2010

Re: REQUEST: Change httpsocket default timeout

In the source code for the HttpSocket, you can see the following
comment:

144 * Build an HTTP Socket using the specified configuration.
145 *
146 * You can use a url string to set the url and use default
configurations for
147 * all other options:
148 *
149 * `$http =& new HttpSockect('http://cakephp.org/');`
150 *
151 * Or use an array to configure multiple options:
152 *
153 * {{{
154 * $http =& new HttpSocket(array(
155 * 'host' => 'cakephp.org',
156 * 'timeout' => 20
157 * ));
158 * }}}
159 *

So just specify your new timeout value as shown above and you are good
to go.
Enjoy,
John

On May 24, 7:19 pm, "kpw.joseluis" <kpw.josel...@gmail.com> wrote:
> Hi,
>
> I would like to be able to change the default httpsocket's timeout
> value (30 seconds on /cake/libs/cake_socket.php)
>
> Any chance to change it (in a future version of CakePhp) without
> having to edit the main source file (cake_socket.php)?
>
> Many thanks and regards.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: