{"action":"created","issue":{"url":"https://api.github.com/repos/scylladb/seastar/issues/355","repository_url":"https://api.github.com/repos/scylladb/seastar","labels_url":"https://api.github.com/repos/scylladb/seastar/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/scylladb/seastar/issues/355/comments","events_url":"https://api.github.com/repos/scylladb/seastar/issues/355/events","html_url":"https://github.com/scylladb/seastar/issues/355","id":271862531,"number":355,"title":"How can I catch the exception in client when server shut down by exception","user":{"login":"shanshanpt","id":6914481,"avatar_url":"https://avatars1.githubusercontent.com/u/6914481?v=4","gravatar_id":"","url":"https://api.github.com/users/shanshanpt","html_url":"https://github.com/shanshanpt","followers_url":"https://api.github.com/users/shanshanpt/followers","following_url":"https://api.github.com/users/shanshanpt/following{/other_user}","gists_url":"https://api.github.com/users/shanshanpt/gists{/gist_id}","starred_url":"https://api.github.com/users/shanshanpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanshanpt/subscriptions","organizations_url":"https://api.github.com/users/shanshanpt/orgs","repos_url":"https://api.github.com/users/shanshanpt/repos","events_url":"https://api.github.com/users/shanshanpt/events{/privacy}","received_events_url":"https://api.github.com/users/shanshanpt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-07T15:01:40Z","updated_at":"2017-11-07T23:37:27Z","closed_at":null,"author_association":"NONE","body":"There is a client and a server, when I kill the server process, how to catch the exception in the client? I try to use \"then_wrapped\" follow the write and the read function, but I can't catch the exception. Seastar just report_failed_future(...).\r\nexample:\r\nwrite.then_wrapped([] (auto&& f) {\r\n   try {\r\n        f.get();\r\n   } catch(std::exception& ex) {....}\r\n});\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/scylladb/seastar/issues/comments/342660452","html_url":"https://github.com/scylladb/seastar/issues/355#issuecomment-342660452","issue_url":"https://api.github.com/repos/scylladb/seastar/issues/355","id":342660452,"user":{"login":"noahdesu","id":242417,"avatar_url":"https://avatars1.githubusercontent.com/u/242417?v=4","gravatar_id":"","url":"https://api.github.com/users/noahdesu","html_url":"https://github.com/noahdesu","followers_url":"https://api.github.com/users/noahdesu/followers","following_url":"https://api.github.com/users/noahdesu/following{/other_user}","gists_url":"https://api.github.com/users/noahdesu/gists{/gist_id}","starred_url":"https://api.github.com/users/noahdesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahdesu/subscriptions","organizations_url":"https://api.github.com/users/noahdesu/orgs","repos_url":"https://api.github.com/users/noahdesu/repos","events_url":"https://api.github.com/users/noahdesu/events{/privacy}","received_events_url":"https://api.github.com/users/noahdesu/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T23:37:27Z","updated_at":"2017-11-07T23:37:27Z","author_association":"NONE","body":"Disclaimer: I'm very new to Seastar.\r\n\r\nIt's a little hard to tell from your example code what's going on, but from your description I think the answer is that exceptions are not propagated between clients and servers. When you kill the server, your client will observe broken sockets, etc..., so you have to handle those cases."}}
{"actor":{"display_login":"noahdesu"}}