{"action":"created","issue":{"url":"https://api.github.com/repos/vapor/tls/issues/61","repository_url":"https://api.github.com/repos/vapor/tls","labels_url":"https://api.github.com/repos/vapor/tls/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/vapor/tls/issues/61/comments","events_url":"https://api.github.com/repos/vapor/tls/issues/61/events","html_url":"https://github.com/vapor/tls/issues/61","id":293641055,"number":61,"title":"SSL Handshake on macOS SIGABRT's","user":{"login":"johnbona","id":1079281,"avatar_url":"https://avatars1.githubusercontent.com/u/1079281?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbona","html_url":"https://github.com/johnbona","followers_url":"https://api.github.com/users/johnbona/followers","following_url":"https://api.github.com/users/johnbona/following{/other_user}","gists_url":"https://api.github.com/users/johnbona/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbona/subscriptions","organizations_url":"https://api.github.com/users/johnbona/orgs","repos_url":"https://api.github.com/users/johnbona/repos","events_url":"https://api.github.com/users/johnbona/events{/privacy}","received_events_url":"https://api.github.com/users/johnbona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T18:44:58Z","updated_at":"2018-02-01T20:33:25Z","closed_at":null,"author_association":"NONE","body":"Using this example route:\r\n```swift\r\nrouter.get() { request -> Response in\r\n\tlet googleClient = try request.make(Client.self)\r\n\tlet google = try googleClient.get(URI(\"https://google.com\")).await(on: request)\r\n\r\n\tprint(google.http.body)\r\n\r\n\treturn Response(http: HTTPResponse(status: .ok), using: request)\r\n}\r\n```\r\nThe TLS handshake crashes at `AppleTLSSocket.swift`, line 83:\r\n```\r\nmalloc: *** error for object 0x101c23080: pointer being freed was not allocated\r\n*** set a breakpoint in malloc_error_break to debug\r\n```\r\n\r\nUsing Swift 4.1 (1/30) and all packages are up to date (used `swift package update` not `vapor update`)."},"comment":{"url":"https://api.github.com/repos/vapor/tls/issues/comments/362393079","html_url":"https://github.com/vapor/tls/issues/61#issuecomment-362393079","issue_url":"https://api.github.com/repos/vapor/tls/issues/61","id":362393079,"user":{"login":"gwynne","id":1130717,"avatar_url":"https://avatars3.githubusercontent.com/u/1130717?v=4","gravatar_id":"","url":"https://api.github.com/users/gwynne","html_url":"https://github.com/gwynne","followers_url":"https://api.github.com/users/gwynne/followers","following_url":"https://api.github.com/users/gwynne/following{/other_user}","gists_url":"https://api.github.com/users/gwynne/gists{/gist_id}","starred_url":"https://api.github.com/users/gwynne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwynne/subscriptions","organizations_url":"https://api.github.com/users/gwynne/orgs","repos_url":"https://api.github.com/users/gwynne/repos","events_url":"https://api.github.com/users/gwynne/events{/privacy}","received_events_url":"https://api.github.com/users/gwynne/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T20:33:25Z","updated_at":"2018-02-01T20:33:25Z","author_association":"NONE","body":"The malloc error is due to using an `SSLContext` on more than one thread, which apparently `SecureTransport` doesn't like but also doesn't document anywhere that I can find. Fixing this results in a socket that fails to parse the HTTP request properly instead."}}
{"actor":{"display_login":"gwynne"}}