{"action":"opened","issue":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/2826","labels_url":"https://api.github.com/repos/cuberite/cuberite/issues/2826/labels{/name}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/2826/comments","events_url":"https://api.github.com/repos/cuberite/cuberite/issues/2826/events","html_url":"https://github.com/cuberite/cuberite/issues/2826","id":123936596,"number":2826,"title":"SSL assertion","user":{"login":"Gargaj","id":1702533,"avatar_url":"https://avatars.githubusercontent.com/u/1702533?v=3","gravatar_id":"","url":"https://api.github.com/users/Gargaj","html_url":"https://github.com/Gargaj","followers_url":"https://api.github.com/users/Gargaj/followers","following_url":"https://api.github.com/users/Gargaj/following{/other_user}","gists_url":"https://api.github.com/users/Gargaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Gargaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gargaj/subscriptions","organizations_url":"https://api.github.com/users/Gargaj/orgs","repos_url":"https://api.github.com/users/Gargaj/repos","events_url":"https://api.github.com/users/Gargaj/events{/privacy}","received_events_url":"https://api.github.com/users/Gargaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-26T16:08:11Z","updated_at":"2015-12-26T16:08:11Z","closed_at":null,"body":"I've been getting assertion errors when trying to log in to my local debug server; I've traced the problem back to ```cMojangAPI::SecureRequest``` and added some debug info:\r\n```\r\n[b58cae9c|16:59:00] Trying to authenticate user Gargaj\r\n[b58cae9c|16:59:00] [cBlockingSslClientSocket] Socket connected\r\n[b58cae9c|16:59:00] [cBlockingSslClientSocket] Send (184)\r\n[b58cae9c|16:59:00] [cBlockingSslClientSocket] Receive (1024)\r\n[c966d884|16:59:01] [cBlockingSslClientSocket] Socket disconnected\r\n[b58cae9c|16:59:01] [cBlockingSslClientSocket] Receive (1024)\r\n```\r\nWhat I suspect (guess) happens is that the SSL socket connects, then sends the request, reads some data back, after which the server drops the connection (which triggers ```cBlockingSslClientSocketLinkCallbacks::OnRemoteClosed```), the socket becomes disconnected, but ```cMojangAPI::SecureRequest``` doesn't know that and tries to read from it again.\r\n\r\nUnsure how to fix it."}}