{"action":"created","issue":{"url":"https://api.github.com/repos/ellzey/libevhtp/issues/151","labels_url":"https://api.github.com/repos/ellzey/libevhtp/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/ellzey/libevhtp/issues/151/comments","events_url":"https://api.github.com/repos/ellzey/libevhtp/issues/151/events","html_url":"https://github.com/ellzey/libevhtp/issues/151","id":52962155,"number":151,"title":"evthr_pool_stop does not guarantee that thread actually stops","user":{"login":"romange","id":3674760,"avatar_url":"https://avatars.githubusercontent.com/u/3674760?v=3","gravatar_id":"","url":"https://api.github.com/users/romange","html_url":"https://github.com/romange","followers_url":"https://api.github.com/users/romange/followers","following_url":"https://api.github.com/users/romange/following{/other_user}","gists_url":"https://api.github.com/users/romange/gists{/gist_id}","starred_url":"https://api.github.com/users/romange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romange/subscriptions","organizations_url":"https://api.github.com/users/romange/orgs","repos_url":"https://api.github.com/users/romange/repos","events_url":"https://api.github.com/users/romange/events{/privacy}","received_events_url":"https://api.github.com/users/romange/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-27T17:53:39Z","updated_at":"2015-01-05T00:18:50Z","closed_at":null,"body":"After successfully calling evthr_pool_stop and then calling evthr_pool_free\r\n\r\ni get an error at the line below. Which proves that the thread did not really exit.\r\n\r\nif ((recvd = recv(sock, &cmd, sizeof(evthr_cmd_t), 0)) <= 0) {\r\n        pthread_mutex_unlock(&thread->rlock);\r\n        if (errno == EAGAIN) {\r\n            goto end;\r\n        } else {\r\n            fprintf(stderr, \"recv failed %d\\n\", sock);   // ERROR : - I added this line\r\n            goto error;\r\n        }\r\n}"},"comment":{"url":"https://api.github.com/repos/ellzey/libevhtp/issues/comments/68656470","html_url":"https://github.com/ellzey/libevhtp/issues/151#issuecomment-68656470","issue_url":"https://api.github.com/repos/ellzey/libevhtp/issues/151","id":68656470,"user":{"login":"sodabrew","id":39406,"avatar_url":"https://avatars.githubusercontent.com/u/39406?v=3","gravatar_id":"","url":"https://api.github.com/users/sodabrew","html_url":"https://github.com/sodabrew","followers_url":"https://api.github.com/users/sodabrew/followers","following_url":"https://api.github.com/users/sodabrew/following{/other_user}","gists_url":"https://api.github.com/users/sodabrew/gists{/gist_id}","starred_url":"https://api.github.com/users/sodabrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodabrew/subscriptions","organizations_url":"https://api.github.com/users/sodabrew/orgs","repos_url":"https://api.github.com/users/sodabrew/repos","events_url":"https://api.github.com/users/sodabrew/events{/privacy}","received_events_url":"https://api.github.com/users/sodabrew/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T00:18:50Z","updated_at":"2015-01-05T00:18:50Z","body":"+1 for devil's threading."}}