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

Helen: strengthen and test message canceling behavior #5

Open
achirkin opened this issue May 26, 2017 · 0 comments
Open

Helen: strengthen and test message canceling behavior #5

achirkin opened this issue May 26, 2017 · 0 comments

Comments

@achirkin
Copy link
Owner

PROJECTS: helen
CHANGESET: Core/Service module alone = pure Haskell + monads and lenses
DESCRIPTION:

The message canceling policy in helen is not good enough (if not totally incorrect). We have two types of services: the ones that can handle new messages (non-blocking services) and the ones that cannot (blocking services).
On the other hand, a client can send message cancel: helen must guarantee that no messages from running service come after receiving cancel message.
Hence, ideal behavior is

  1. If the service is non-blocking, then forward cancel message to it
  2. In any case if the service sends anything related to the canceled session, send back a specific error message telling that the request was already canceled.

The corresponding piece of code is in Helen/Core/Service.hs.
The task is to modify processCancelMessage function (and some code nearby if necessary) to send make sure the behavior is correct.

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

No branches or pull requests

1 participant