/[Apache-SVN]
ViewVC logotype

Revision 1804534


Jump to revision: Previous Next
Author: kotkov
Date: Wed Aug 9 14:49:27 2017 UTC (6 years, 10 months ago)
Changed paths: 3
Log Message:
Add a test for an error while reading the request body for an outgoing
request.

Apparently, Serf 1.3.x has a few related problems, which were fixed in
trunk by the introduced pump layer.  This test should aid in preparing
the 1.3.x-specific fix for these issues.

* test/test_serf.h
  (test_request_setup_t): New typedef.
  (handler_baton_t): Add an optional test_request_setup_t.
  (create_new_request_with_resp_hdlr): Morph into ...
  (create_new_request_ex): ...this new function that allows setting up
   non-default request setup and response handlers.
  (setup_handler): Accept an optional test_request_setup_t.

* test/test_util.c
  (create_new_request_with_resp_hdlr): Morph into ...
  (create_new_request_ex): ...this new function that allows setting up
   non-default request setup and response handlers.
  (setup_handler): Accept an optional test_request_setup_t.
  (create_new_prio_request, create_new_request): Update calls to
   setup_handler().
  (setup_request): Use the custom test_request_setup_t if available.

* test/test_context.c
  (test_keepalive_limit_one_by_one,
   test_keepalive_limit_one_by_one_and_burst): Adjust to cope with the
   rename of create_new_request_with_resp_hdlr().
  (setup_request_err): New helper function, implements test_request_setup_t.
  (test_outgoing_request_err): New test.
  (test_context): Add new test.


Changed paths

Path Details
Directoryserf/trunk/test/test_context.c modified , text changed
Directoryserf/trunk/test/test_serf.h modified , text changed
Directoryserf/trunk/test/test_util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26