]> granicus.if.org Git - libevent/commitdiff
test: http/data_length_constrains: set EVHTTP_CON_READ_ON_WRITE_ERROR
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 14 Feb 2016 23:41:19 +0000 (02:41 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 9 Mar 2016 15:52:52 +0000 (18:52 +0300)
test/regress_http.c

index bd9425785db80dff94f8afc35d7781e972585f41..d7fb4309ae54f24ce7908af5fad38cd020f9eb30 100644 (file)
@@ -3801,6 +3801,7 @@ http_data_length_constraints_test(void *arg)
 
        evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port);
        tt_assert(evcon);
+       tt_assert(!evhttp_connection_set_flags(evcon, EVHTTP_CON_READ_ON_WRITE_ERROR));
 
        /* also bind to local host */
        evhttp_connection_set_local_address(evcon, "127.0.0.1");