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

When header are invalid, exception is not catched #399

Closed
lyrixx opened this issue Jul 9, 2019 · 1 comment
Closed

When header are invalid, exception is not catched #399

lyrixx opened this issue Jul 9, 2019 · 1 comment

Comments

@lyrixx
Copy link
Contributor

lyrixx commented Jul 9, 2019

hello

Here is the reproducer:

use Buzz\Client\MultiCurl;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\Request;

require __DIR__.'/vendor/autoload.php';

$client = new MultiCurl(new Psr17Factory(), [
]);

$client->sendAsyncRequest($a = new Request('get', 'https://www.elysee.fr/'), ['callback' => function($request, $response, $exception) {
    dump([$request, $response, $exception]);
}]);

while (true) {
    $client->proceed();
    echo '.';
    usleep(100000);
}

I'm expecting that my callback will be called. But instead an exception is bubbled from $client->proceed()

@lyrixx
Copy link
Contributor Author

lyrixx commented Jan 30, 2020

I don't need that anymore. Thanks

@lyrixx lyrixx closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant