mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
disable bufferevent after we have received the data that we care for.
svn:r197
This commit is contained in:
parent
a3bb4a035f
commit
c398d78811
@ -134,6 +134,7 @@ http_readcb(struct bufferevent *bev, void *arg)
|
||||
"Content-Type") != NULL)
|
||||
test_ok++;
|
||||
evhttp_request_free(req);
|
||||
bufferevent_disable(bev, EV_READ);
|
||||
event_loopexit(NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user