mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: http/data_length_constrains: set EVHTTP_CON_READ_ON_WRITE_ERROR
This commit is contained in:
parent
9fde5189df
commit
d38a723974
@ -3801,6 +3801,7 @@ http_data_length_constraints_test(void *arg)
|
|||||||
|
|
||||||
evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port);
|
evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port);
|
||||||
tt_assert(evcon);
|
tt_assert(evcon);
|
||||||
|
tt_assert(!evhttp_connection_set_flags(evcon, EVHTTP_CON_READ_ON_WRITE_ERROR));
|
||||||
|
|
||||||
/* also bind to local host */
|
/* also bind to local host */
|
||||||
evhttp_connection_set_local_address(evcon, "127.0.0.1");
|
evhttp_connection_set_local_address(evcon, "127.0.0.1");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user