babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

web socket test failed during build #176

Closed nageshlop closed 3 years ago

nageshlop commented 3 years ago

Describe the issue During the PR request raised below observing build issue caused by previous commit. https://github.com/babelouest/ulfius/pull/175

To Reproduce Run the travis build to reproduce the issue. Error: Process completed with exit status code 0

Expected behavior The test should pass with successful message.

Screenshots Build Error log:

2020-11-30T03:42:37.4678849Z [100%] Built target websocket 2020-11-30T03:42:37.5511113Z Start 1: core 2020-11-30T03:42:37.6553160Z 1/4 Test #1: core ............................. Passed 0.08 sec 2020-11-30T03:42:37.7114018Z Start 2: u_map 2020-11-30T03:42:37.7327904Z 2/4 Test #2: u_map ............................ Passed 0.02 sec 2020-11-30T03:42:37.7329079Z Start 3: framework 2020-11-30T03:42:38.2975282Z 3/4 Test #3: framework ........................ Passed 0.56 sec 2020-11-30T03:42:38.2978254Z Start 4: websocket 2020-11-30T03:43:09.2586544Z 4/4 Test #4: websocket ........................Failed 30.96 sec 2020-11-30T03:43:09.2589790Z 2020-11-30T03:43:09.2590910Z Errors while running CTest 2020-11-30T03:43:09.2591485Z 75% tests passed, 1 tests failed out of 4 2020-11-30T03:43:09.2592101Z 2020-11-30T03:43:09.2592791Z Total Test time (real) = 31.79 sec 2020-11-30T03:43:09.2593186Z 2020-11-30T03:43:09.2593626Z The following tests FAILED: 2020-11-30T03:43:09.2594842Z 4 - websocket (Failed) 2020-11-30T03:43:09.3336373Z Makefile:157: recipe for target 'test' failed 2020-11-30T03:43:09.3338460Z make: [test] Error 8 2020-11-30T03:43:09.3352218Z Start testing: Nov 30 03:42 UTC 2020-11-30T03:43:09.3353238Z ---------------------------------------------------------- 2020-11-30T03:43:09.3353894Z 1/4 Testing: core 2020-11-30T03:43:09.3354278Z 1/4 Test: core

2020-11-30T03:43:09.3482087Z 2020-11-30T03:43:09Z - Ulfius DEBUG: client message 1 'HelloFromClient' sent 2020-11-30T03:43:09.3483365Z 2020-11-30T03:43:09Z - Ulfius DEBUG: client message 2 'HelloFromClient' sent 2020-11-30T03:43:09.3484067Z 90%: Checks: 10, Failures: 0, Errors: 1 2020-11-30T03:43:09.3485088Z /home/runner/work/ulfius/ulfius/test/websocket.c:531:P:test_ulfius_websocket:test_ulfius_websocket_set_websocket_response:0: Passed 2020-11-30T03:43:09.3486393Z /home/runner/work/ulfius/ulfius/test/websocket.c:547:P:test_ulfius_websocket:test_ulfius_websocket_set_websocket_request:0: Passed 2020-11-30T03:43:09.3487809Z /home/runner/work/ulfius/ulfius/test/websocket.c:564:P:test_ulfius_websocket:test_ulfius_websocket_open_websocket_client_connection_error:0: Passed 2020-11-30T03:43:09.3489124Z /home/runner/work/ulfius/ulfius/test/websocket.c:612:P:test_ulfius_websocket:test_ulfius_websocket_client:0: Passed 2020-11-30T03:43:09.3490382Z /home/runner/work/ulfius/ulfius/test/websocket.c:658:P:test_ulfius_websocket:test_ulfius_websocket_client_no_onclose:0: Passed 2020-11-30T03:43:09.3491655Z /home/runner/work/ulfius/ulfius/test/websocket.c:687:P:test_ulfius_websocket:test_ulfius_websocket_extension_no_match_function:0: Passed 2020-11-30T03:43:09.3493154Z /home/runner/work/ulfius/ulfius/test/websocket.c:714:E:test_ulfius_websocket:test_ulfius_websocket_extension_match_function:0: (after this point) Test timeout expired 2020-11-30T03:43:09.3494610Z /home/runner/work/ulfius/ulfius/test/websocket.c:746:P:test_ulfius_websocket:test_ulfius_websocket_extension_deflate:0: Passed 2020-11-30T03:43:09.3495963Z /home/runner/work/ulfius/ulfius/test/websocket.c:775:P:test_ulfius_websocket:test_ulfius_websocket_extension_deflate_with_all_params:0: Passed 2020-11-30T03:43:09.3497393Z /home/runner/work/ulfius/ulfius/test/websocket.c:804:P:test_ulfius_websocket:test_ulfius_websocket_extension_deflate_error_params:0: Passed 2020-11-30T03:43:09.3498286Z 2020-11-30T03:43:09.3498797Z Test time = 30.96 sec 2020-11-30T03:43:09.3499559Z ---------------------------------------------------------- 2020-11-30T03:43:09.3500152Z Test Failed. 2020-11-30T03:43:09.3500649Z "websocket" end time: Nov 30 03:43 UTC 2020-11-30T03:43:09.3501208Z "websocket" time elapsed: 00:00:30 2020-11-30T03:43:09.3502057Z ---------------------------------------------------------- 2020-11-30T03:43:09.3502463Z 2020-11-30T03:43:09.3502867Z End testing: Nov 30 03:43 UTC 2020-11-30T03:43:09.3514090Z ##[error]Process completed with exit code 1. 2020-11-30T03:43:09.3591899Z Cleaning up orphan processes

2020-11-30T03:43:09.3477894Z 2020-11-30T03:43:09Z - Ulfius DEBUG: client message 2 'HelloFromClient' sent 2020-11-30T03:43:09.3479156Z 2020-11-30T03:43:09Z - Ulfius DEBUG: websocket_extension_server_match_deflate - Error server_max_window_bits value 2020-11-30T03:43:09.3480276Z 2020-11-30T03:43:09Z - Ulfius DEBUG: server message 1 sent 2020-11-30T03:43:09.3481096Z 2020-11-30T03:43:09Z - Ulfius DEBUG: server message 2 sent 2020-11-30T03:43:09.3482087Z 2020-11-30T03:43:09Z - Ulfius DEBUG: client message 1 'HelloFromClient' sent 2020-11-30T03:43:09.3483365Z 2020-11-30T03:43:09Z - Ulfius DEBUG: client message 2 'HelloFromClient' sent 2020-11-30T03:43:09.3484067Z 90%: Checks: 10, Failures: 0, Errors: 1

System (please complete the following information):

babelouest commented 3 years ago

Hello @nageshlop ,

Indeed, the CI pipeline fails since last week. I'm in a middle of a websocket rework to comply with Autobahn testsuite.

The new bugs in the websocket code are difficult to catch because they almost never arrive on my machine and seem random.

The next release 2.7.0 should have them fixed but until then, if you have time to help fix them, I wouldn't say no to some help!

babelouest commented 3 years ago

The failed tests seem fixed now

nageshlop commented 3 years ago

With latest build didn't observe this issue. Thank you.