[asterisk-bugs] [JIRA] (ASTERISK-30099) test_aeap_transport: transport_connect_fail sporadically causes failure
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Tue Jun 28 07:19:49 CDT 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua C. Colp reassigned ASTERISK-30099:
-----------------------------------------
Assignee: Joshua C. Colp
> test_aeap_transport: transport_connect_fail sporadically causes failure
> -----------------------------------------------------------------------
>
> Key: ASTERISK-30099
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30099
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_http_websocket, Tests/General
> Affects Versions: 18.12.0, 19.4.0
> Reporter: Kevin Harwell
> Assignee: Joshua C. Colp
>
> Unit tests in _test_aeap_transport.c_ that follow the {{transport_connect_fail}} test occasionally fail:
> {noformat}
> 06:03:03 START /res/aeap/transport/ - transport_create_invalid
> 06:03:03 END /res/aeap/transport/ - transport_create_invalid Time: <1ms Result: PASS
> 06:03:03 START /res/aeap/transport/ - transport_create
> 06:03:03 END /res/aeap/transport/ - transport_create Time: <1ms Result: PASS
> 06:03:03 START /res/aeap/transport/ - transport_connect
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_aeap/transport.c:36 aeap_transport_create: AEAP transport: failed to create for type 'invalid'
> 06:03:03 END /res/aeap/transport/ - transport_connect Time: 1ms Result: PASS
> 06:03:03 START /res/aeap/transport/ - transport_connect_fail
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_http_websocket.c:1290 websocket_client_handle_response_code: Received response 404 - Request URL not found - from 127.0.0.1:8088
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_aeap/transport_websocket.c:51 websocket_connect: AEAP websocket (0x45f36e0): connect failure (8)
> 06:03:03 [Jun 7 11:03:03] WARNING[30633]: res_http_websocket.c:866 __ast_websocket_uri_cb: WebSocket connection from '127.0.0.1:60612' could not be accepted - no protocols out of 'invalid' supported
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_http_websocket.c:1286 websocket_client_handle_response_code: Received response 400 - Bad Request - from 127.0.0.1:8088
> 06:03:03 END /res/aeap/transport/ - transport_connect_fail Time: 1ms Result: PASS
> 06:03:03 START /res/aeap/transport/ - transport_binary
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_aeap/transport_websocket.c:51 websocket_connect: AEAP websocket (0x46d0630): connect failure (7)
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_http_websocket.c:1312 websocket_client_handshake_get_response: Unable to retrieve HTTP status line.
> 06:03:03 [test_aeap_transport.c:transport_binary:169]: Condition failed: (transport = aeap_transport_create_and_connect( TRANSPORT_URL, TRANSPORT_URL, TRANSPORT_PROTOCOL, TRANSPORT_TIMEOUT))
> 06:03:03 END /res/aeap/transport/ - transport_binary Time: <1ms Result: FAIL
> 06:03:03 START /res/aeap/transport/ - transport_string
> 06:03:03 [Jun 7 11:03:03] ERROR[29881]: res_aeap/transport_websocket.c:51 websocket_connect: AEAP websocket (0x4702f60): connect failure (5)
> 06:03:03 [Jun 7 11:03:03] WARNING[30634]: res_http_websocket.c:559 ws_safe_read: Web socket closed abruptly
> 06:03:03 [Jun 7 11:03:03] WARNING[30634]: res_http_websocket.c:1025 websocket_echo_callback: Read failure during WebSocket echo loop
> {noformat}
> This was caught on Jenkins, but unfortunately I am no longer able to replicate the problem on my local machine.
> I _think_ it has something to do with the {{transport_connect_fail}} test sometimes not cleaning things up fast enough upon a "bad request". A subsequent test attempting to connect then fails.
> To test this theory I've commented out the potentially offending code in the test. If that ends up being the cause hopefully it'll help point in a direction to go for a real fix.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list