{"action":"created","issue":{"url":"https://api.github.com/repos/m8rge/cwebsocket/issues/21","repository_url":"https://api.github.com/repos/m8rge/cwebsocket","labels_url":"https://api.github.com/repos/m8rge/cwebsocket/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/m8rge/cwebsocket/issues/21/comments","events_url":"https://api.github.com/repos/m8rge/cwebsocket/issues/21/events","html_url":"https://github.com/m8rge/cwebsocket/issues/21","id":132883309,"number":21,"title":"recv == 0","user":{"login":"wumao","id":159140,"avatar_url":"https://avatars.githubusercontent.com/u/159140?v=3","gravatar_id":"","url":"https://api.github.com/users/wumao","html_url":"https://github.com/wumao","followers_url":"https://api.github.com/users/wumao/followers","following_url":"https://api.github.com/users/wumao/following{/other_user}","gists_url":"https://api.github.com/users/wumao/gists{/gist_id}","starred_url":"https://api.github.com/users/wumao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wumao/subscriptions","organizations_url":"https://api.github.com/users/wumao/orgs","repos_url":"https://api.github.com/users/wumao/repos","events_url":"https://api.github.com/users/wumao/events{/privacy}","received_events_url":"https://api.github.com/users/wumao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-11T04:14:32Z","updated_at":"2016-03-15T20:26:35Z","closed_at":null,"body":"ssize_t readed = recv(clientSocket, gBuffer+readedLength, BUF_LEN-readedLength, 0);\r\n\r\nI compile this lib use mipsel-openwrt-linux-gcc.  run on router.\r\n\r\nmaybe void wsGetHandshakeAnswer(const struct handshake *hs, uint8_t *outFrame,  *outLength)\r\nhave a bad responseKey\r\non x86 it is ok."},"comment":{"url":"https://api.github.com/repos/m8rge/cwebsocket/issues/comments/197006925","html_url":"https://github.com/m8rge/cwebsocket/issues/21#issuecomment-197006925","issue_url":"https://api.github.com/repos/m8rge/cwebsocket/issues/21","id":197006925,"user":{"login":"yesco","id":2121626,"avatar_url":"https://avatars.githubusercontent.com/u/2121626?v=3","gravatar_id":"","url":"https://api.github.com/users/yesco","html_url":"https://github.com/yesco","followers_url":"https://api.github.com/users/yesco/followers","following_url":"https://api.github.com/users/yesco/following{/other_user}","gists_url":"https://api.github.com/users/yesco/gists{/gist_id}","starred_url":"https://api.github.com/users/yesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesco/subscriptions","organizations_url":"https://api.github.com/users/yesco/orgs","repos_url":"https://api.github.com/users/yesco/repos","events_url":"https://api.github.com/users/yesco/events{/privacy}","received_events_url":"https://api.github.com/users/yesco/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T20:26:35Z","updated_at":"2016-03-15T20:26:35Z","body":"Notice the call parameters are different order and return value:\r\n\r\n    base64_encode(shaHash, 20, responseKey, length);\r\n    size_t base64Length = base64len(20);\r\n\r\nthen it seems to work fine!"}}