pistache: Unit test client_multiple_requests_disconnects_handled is failed
Hello,
I have run unit tests on the latest souce and got the following error:
12: [ RUN ] http_server_test.client_multiple_requests_disconnects_handled
12: Trying to run server...
12: INITING
12: Server address: localhost:38919
12: [server] Sent: 127.0.0.1
12: [server] Sent: 127.0.0.1
12: [server] Sent: 127.0.0.1
12: Response code is OK
12: Response code is OK
12: Response code is OK
12: resolves: 3, rejects: 0, timeout: 1, wait: 6
12: /home/hyperxor/code/pistache/tests/http_server_test.cc:475: Failure
12: Value of: CLIENT_REQUEST_SIZE
12: Actual: 3
12: Expected: counter
12: Which is: 0
12: [ FAILED ] http_server_test.client_multiple_requests_disconnects_handled (1003 ms)
It seems it happened after this #838 pull request.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 23 (21 by maintainers)
Commits related to this issue
- Fix issue #842 — committed to hyperxor/pistache by hyperxor 4 years ago
- Fix issue #842 (#845) * Fix issue #842 * Add one more dot * Follow review suggestions * clang format + small change — committed to pistacheio/pistache by hyperxor 4 years ago
- Merge pull request #882 from hyperxor/add_shutdown_socket_and_more_debug_info #842: Add more debug traces to http server test — committed to pistacheio/pistache by kiplingw 3 years ago
- Fix #842 and small refactoring — committed to hyperxor/pistache by hyperxor 3 years ago
- Fix issue #842 and small refactoring — committed to hyperxor/pistache by hyperxor 3 years ago
- Fix issue #842 and small refactoring — committed to hyperxor/pistache by hyperxor 3 years ago
- Merge pull request #912 from hyperxor/fix_issue_842_and_refactoring Fix issue #842 and small refactoring — committed to pistacheio/pistache by kiplingw 3 years ago
I faced this issue quite often. Thread sanitizer report:
I’ve ran the tests with the thread sanitizer (with both GCC and Clang) and it reports data races in 19 tests, specifically
async_test,router_test,cookie_test_3,http_server_test,http_client_test,request_size_test,streaming_test, andthreadname_test. The logs are almost 8000 lines long, but if somebody wants to take a look I’ve uploaded them here (Clang) and here (GCC)