Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeouts when using the default 10s of the Edge client #8

Open
lookaflyingdonkey opened this issue Mar 28, 2017 · 1 comment
Open

Comments

@lookaflyingdonkey
Copy link

When creating the client in the example
$client = new \Akamai\Open\EdgeGrid\Client([ 'base_uri' => $host, 'handler' => $stack ]);

it may be worth putting a timeout example there too like

$client = new \Akamai\Open\EdgeGrid\Client([ 'base_uri' => $host, 'handler' => $stack, 'timeout' => 0 ]);

With the default 10s defined in https://github.com/akamai-open/AkamaiOPEN-edgegrid-php-client/blob/0.3.0/src/Client.php#L41 it pretty much means any files greater than a couple hundred kb cause it to fail.

I noticed in the new 1.0.0 beta1 of the EdgeGrid client it is set to 300 (5 minutes), which is better, but still may be worth putting an example with no timeout.

Cheers,
Dean

@NoodlesNZ
Copy link

Thank you! I was pulling my hair out trying to work out why some of my files weren't making it to NetStorage. Increased the timeout to 300s and it's all working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants