-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow canceling search / sync operations. These are the only types of…
… operations that make sense to have special logic for handling a cancellation. Add a cancellation strategy for search based requests. They can either choose to "continue" to process messages received until the server acknowledges the cancellation, or they can choose to "stop" (the default) and ignore any subsequent messages received from the point of cancellation to the point where the server acknowledges it. I can see the "stop" strategy being useful in normal search contexts, while a "continue" would likely be desired in a sync operation search (as you would not want to ignore sync data).
- Loading branch information
1 parent
226934e
commit 5cb6e57
Showing
15 changed files
with
438 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FreeDSx\Ldap\Exception; | ||
|
||
use Exception; | ||
|
||
/** | ||
* Thrown during a client operation to indicate that the current operation should be canceled. | ||
*/ | ||
class CancelRequestException extends Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.