payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/libevent/libevent/issues/883","repository_url":"https://api.github.com/repos/libevent/libevent","labels_url":"https://api.github.com/repos/libevent/libevent/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/libevent/libevent/issues/883/comments","events_url":"https://api.github.com/repos/libevent/libevent/issues/883/events","html_url":"https://github.com/libevent/libevent/issues/883","id":483157568,"node_id":"MDU6SXNzdWU0ODMxNTc1Njg=","number":883,"title":"I use evhttp as the http server, and when the client repeatedly requests it, I get an event_errx error, version 2.1.11.","user":{"login":"sclei","id":24380548,"node_id":"MDQ6VXNlcjI0MzgwNTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/24380548?v=4","gravatar_id":"","url":"https://api.github.com/users/sclei","html_url":"https://github.com/sclei","followers_url":"https://api.github.com/users/sclei/followers","following_url":"https://api.github.com/users/sclei/following{/other_user}","gists_url":"https://api.github.com/users/sclei/gists{/gist_id}","starred_url":"https://api.github.com/users/sclei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclei/subscriptions","organizations_url":"https://api.github.com/users/sclei/orgs","repos_url":"https://api.github.com/users/sclei/repos","events_url":"https://api.github.com/users/sclei/events{/privacy}","received_events_url":"https://api.github.com/users/sclei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-21T01:45:37Z","updated_at":"2019-08-21T01:45:37Z","closed_at":null,"author_association":"NONE","body":"Hello, @azat,  I also encountered the same problem in 2.1.11.\r\nI opened **a new thread** to process the http request in the callback function, and used the evhttp_send related function or the replay function to reply to the client in this new thread.  **Sometimes I run into this problem, usually when the client's request is sent fast.**\r\nI want to know if the evhttp module does not support calling evhttp functions in **multiple threads**  at the same time, or this is an unknown bug.\r\nSince the problem in the stack shows that the problem is dispatched by event, I don't know where the problem with my code is, and if possible I will write a demo to reproduce it.\r\n\r\n#### My stack trace\r\n```shell\r\n#0  0x00007f62a40e44f5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64\r\n#1  0x00007f62a40e5cd5 in abort () at abort.c:92\r\n#2  0x00007f62a54429ba in event_exit () from /usr/lib/libevent-2.1.so.7\r\n#3  0x00007f62a5442e9b in event_errx () from /usr/lib/libevent-2.1.so.7\r\n#4  0x00007f62a543000d in bufferevent_decref_and_unlock_ () from /usr/lib/libevent-2.1.so.7\r\n#5  0x00007f62a543a29a in event_process_active_single_queue () from /usr/lib/libevent-2.1.so.7\r\n#6  0x00007f62a543acbf in event_base_loop () from /usr/lib/libevent-2.1.so.7\r\n#7  0x0000000000433700 in MyNamespace::Server::start() ()\r\n#8  0x0000000000431dfe in main ()\r\n```\r\n\r\n_Originally posted by @sclei in https://github.com/libevent/libevent/issues/315#issuecomment-522970003_"}}
other: {"actor":{"display_login":"sclei"}}