]> granicus.if.org Git - libevent/commitdiff
disable bufferevent after we have received the data that we care for.
authorNiels Provos <provos@gmail.com>
Thu, 2 Feb 2006 22:36:37 +0000 (22:36 +0000)
committerNiels Provos <provos@gmail.com>
Thu, 2 Feb 2006 22:36:37 +0000 (22:36 +0000)
svn:r197

test/regress_http.c

index a7c1423a892a0447838b81cdebb76da03145f3c3..9bb3b25f05334fd326387dd10a6d77706740bb37 100644 (file)
@@ -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);
        }
 }