test: http/data_length_constrains: set EVHTTP_CON_READ_ON_WRITE_ERROR

This commit is contained in:
Azat Khuzhin 2016-02-15 02:41:19 +03:00
parent 9fde5189df
commit d38a723974

View 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");