-
-
Notifications
You must be signed in to change notification settings - Fork 61
Avoid hidding exceptions #26
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
Conversation
|
Thanks for spotting! These could certainly introduce some subtle and hard to trace issues. I'm currently in the process of refactoring quite a bit of the dns component, so I'm considering how I'm going to introduce this. FWIW: These changes only work with the latest Promise API, so we would also have to raise our minimum requirement. |
|
Thanks. Currently, catching issues in user code is made very hard because of this, as soon as this Just for my information, what kind of issues could this change introduce ?
What are the rules for raising the requirements against a dependency that's also part of reactphp ? Could this be done in a MINOR (i.e. not PATCH) release of react/dns ? |
After reconsidering this, I'm leaning towards getting your changes in first. After all you've filed your PR first :-) I'll have to resolve a few merge conflicts because I'm looking into introducing quite a bit of new structure, but that's nothing you have to worry about.
This will likely be tackled once it comes to tagging the next release. In this particular case it does not affect the public API, so this will likely end up in a patch release. Can you update the composer.json? Otherwise LGTM 👍 |
|
LGTM 👍 |
Ping @arnaud-lb, can you update this to require Otherwise LGTM 👍 |
|
LGTM 👍 |
fdd1fee to
7768ee6
Compare
|
@clue @WyriHaximus done! Sorry for the delay, I didn't see the update request at first :) |
|
|
|
Yes, because react/promise |
|
This will also cause a merge conflict with #35. Is this still relevant? |
|
@clue Yes it is :) |
02f8163 to
de3b479
Compare
de3b479 to
90bcf15
Compare
|
@clue: I've rebased the PR against master, to fix the conflicts. Also, I've updated the composer requirements (react/promise ~2.2), and removed PHP 5.3 from travis' php targets. |
|
@arnaud-lb Thanks for filing this PR, keeping it updated and sparking the discussion! 👍 I'm not opposed to getting this in, but I'm currently unsure about how much value this PR (still) provides. I think the original PR actually addressed a relevant issue of possibly discarding exceptions in the This means that now, the current PR only avoids discarding exceptions in a single location (cache) that never throws exceptions in the first place. To get this PR in, we'd have to sacrifice backwards compatibility with completely outdated versions (which I'm okay with). As an alternative, I would rather address the cache issue in #81 instead, at which point this update is no longer required in the first place. What do you think about this? Every way, again thanks for your contribution! 👍 |
|
@arnaud-lb Thank you for working on this! I'm closing this for now as it hasn't received any input in a while and I believe this has been answered. Please come back with more details if this problem persists and we can reopen this 👍+ |
then()catches exceptions, which is not desirable when its result is not returned.When using the RetryExecutor, the exception thrown by the following code is caught, whereas it should not:
The PR fixes this by changing some
thentodone.