{"action":"opened","issue":{"url":"https://api.github.com/repos/actor-framework/actor-framework/issues/282","labels_url":"https://api.github.com/repos/actor-framework/actor-framework/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/actor-framework/actor-framework/issues/282/comments","events_url":"https://api.github.com/repos/actor-framework/actor-framework/issues/282/events","html_url":"https://github.com/actor-framework/actor-framework/issues/282","id":73443468,"number":282,"title":"Empty response message do not get handled","user":{"login":"mavam","id":53797,"avatar_url":"https://avatars.githubusercontent.com/u/53797?v=3","gravatar_id":"","url":"https://api.github.com/users/mavam","html_url":"https://github.com/mavam","followers_url":"https://api.github.com/users/mavam/followers","following_url":"https://api.github.com/users/mavam/following{/other_user}","gists_url":"https://api.github.com/users/mavam/gists{/gist_id}","starred_url":"https://api.github.com/users/mavam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavam/subscriptions","organizations_url":"https://api.github.com/users/mavam/orgs","repos_url":"https://api.github.com/users/mavam/repos","events_url":"https://api.github.com/users/mavam/events{/privacy}","received_events_url":"https://api.github.com/users/mavam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/actor-framework/actor-framework/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"Neverlord","id":651128,"avatar_url":"https://avatars.githubusercontent.com/u/651128?v=3","gravatar_id":"","url":"https://api.github.com/users/Neverlord","html_url":"https://github.com/Neverlord","followers_url":"https://api.github.com/users/Neverlord/followers","following_url":"https://api.github.com/users/Neverlord/following{/other_user}","gists_url":"https://api.github.com/users/Neverlord/gists{/gist_id}","starred_url":"https://api.github.com/users/Neverlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neverlord/subscriptions","organizations_url":"https://api.github.com/users/Neverlord/orgs","repos_url":"https://api.github.com/users/Neverlord/repos","events_url":"https://api.github.com/users/Neverlord/events{/privacy}","received_events_url":"https://api.github.com/users/Neverlord/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-05-05T21:58:57Z","updated_at":"2015-05-05T21:58:57Z","closed_at":null,"body":"When sending a an empty message as response to a synchronous request, there exists a bug which prevents the response handler to get executed. The example below illustrates the issue.\r\n\r\n```cpp\r\n#include <iostream>\r\n#include <caf/all.hpp>\r\n\r\nusing namespace caf;\r\nusing namespace std;\r\n\r\nint main() {\r\n  auto nullifier = spawn(\r\n    [](event_based_actor* self) {\r\n      self->become(\r\n        others() >> [] { return message{}; }\r\n      );\r\n    }\r\n  );\r\n  scoped_actor self;\r\n  self->sync_send(nullifier, \"whatever\").await(\r\n    others() >> [&] { cout << to_string(self->current_message()) << endl; }\r\n  );\r\n}\r\n```"}}