{"action":"opened","issue":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1421","repository_url":"https://api.github.com/repos/rejectedsoftware/vibe.d","labels_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1421/labels{/name}","comments_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1421/comments","events_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1421/events","html_url":"https://github.com/rejectedsoftware/vibe.d/issues/1421","id":133254512,"number":1421,"title":"Exception gets swallowed","user":{"login":"John-Colvin","id":1867189,"avatar_url":"https://avatars.githubusercontent.com/u/1867189?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Colvin","html_url":"https://github.com/John-Colvin","followers_url":"https://api.github.com/users/John-Colvin/followers","following_url":"https://api.github.com/users/John-Colvin/following{/other_user}","gists_url":"https://api.github.com/users/John-Colvin/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Colvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Colvin/subscriptions","organizations_url":"https://api.github.com/users/John-Colvin/orgs","repos_url":"https://api.github.com/users/John-Colvin/repos","events_url":"https://api.github.com/users/John-Colvin/events{/privacy}","received_events_url":"https://api.github.com/users/John-Colvin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T14:25:07Z","updated_at":"2016-02-12T14:25:07Z","closed_at":null,"body":"I modified `examples/websocket` to throw an exception on connection, like this:\r\n\r\n```\r\nimport vibe.core.log;\r\nimport vibe.http.fileserver : serveStaticFiles;\r\nimport vibe.http.router : URLRouter;\r\nimport vibe.http.server;\r\nimport vibe.http.websockets : WebSocket, handleWebSockets;\r\n\r\nshared static this()\r\n{\r\n\tauto router = new URLRouter;\r\n\trouter.get(\"/ws\", handleWebSockets(&handleWebSocketConnection));\r\n\r\n\tauto settings = new HTTPServerSettings;\r\n\tsettings.port = 8080;\r\n\tsettings.bindAddresses = [\"::1\", \"127.0.0.1\"];\r\n\tlistenHTTP(settings, router);\r\n}\r\n\r\nvoid handleWebSocketConnection(scope WebSocket socket)\r\n{\r\n    logInfo(\"hello\");\r\n    throw new Exception(\"\");\r\n}\r\n```\r\n\r\nWhen I connect to the socket, `hello` is printed, but there is no sign of the exception and the program continues uninterrupted."}}