Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SSL connection crashes with function_clause error after relup #170

Merged
merged 1 commit into from Jan 19, 2023

Conversation

terry-xiaoyu
Copy link
Contributor

After release upgrade from e4.4.3 to e4.4.14, all the new TLS connections will fail to connect to emqx:

2023-01-17T12:44:16.319429+00:00 [error] crasher: initial call: emqx_connection:init/4, pid: <0.18564.56>, registered_name: [], error: {function_clause,[{esockd_transport,ssl_upgrade,[#Port<0.435075>,[{ciphers,["TLS_AES_256_GCM_SHA384","TLS_AES_128_GCM_SHA256","TLS_CHACHA20_POLY1305_SHA256","TLS_AES_128_CCM_SHA256","TLS_AES_128_CCM_8_SHA256","ECDHE-ECDSA-AES256-GCM-SHA384","ECDHE-RSA-AES256-GCM-SHA384","ECDHE-ECDSA-AES256-SHA384","ECDHE-RSA-AES256-SHA384","ECDHE-ECDSA-DES-CBC3-SHA","ECDH-ECDSA-AES256-GCM-SHA384","ECDH-RSA-AES256-GCM-SHA384","ECDH-ECDSA-AES256-SHA384","ECDH-RSA-AES256-SHA384","DHE-DSS-AES256-GCM-SHA384","DHE-DSS-AES256-SHA256","AES256-GCM-SHA384","AES256-SHA256","ECDHE-ECDSA-AES128-GCM-SHA256","ECDHE-RSA-AES128-GCM-SHA256","ECDHE-ECDSA-AES128-SHA256","ECDHE-RSA-AES128-SHA256","ECDH-ECDSA-AES128-GCM-SHA256","ECDH-RSA-AES128-GCM-SHA256","ECDH-ECDSA-AES128-SHA256","ECDH-RSA-AES128-SHA256","DHE-DSS-AES128-GCM-SHA256","DHE-DSS-AES128-SHA256","AES128-GCM-SHA256","AES128-SHA256","ECDHE-ECDSA-AES256-SHA","ECDHE-RSA-AES256-SHA","DHE-DSS-AES256-SHA","ECDH-ECDSA-AES256-SHA","ECDH-RSA-AES256-SHA","AES256-SHA","ECDHE-ECDSA-AES128-SHA","ECDHE-RSA-AES128-SHA","DHE-DSS-AES128-SHA","ECDH-ECDSA-AES128-SHA","ECDH-RSA-AES128-SHA","AES128-SHA"]},{depth,10},{keyfile,"etc/certs/key.pem"},{certfile,"etc/certs/cert.pem"},{cacertfile,"etc/certs/cacert.pem"},{verify,verify_peer},{fail_if_no_peer_cert,true},{reuse_sessions,true}],15000],[{file,"esockd_transport.erl"},{line,352}]},{esockd_transport,upgrade,2,[{file,"esockd_transport.erl"},{line,78}]},{emqx_connection,init,4,[{file,"emqx_connection.erl"},{line,262}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [<0.2625.0>,<0.2624.0>,esockd_sup,<0.2179.0>], message_queue_len: 0, messages: [], links: [<0.2625.0>,#Port<0.435075>], dictionary: [], trap_exit: false, status: running, heap_size: 2586, stack_size: 29, reductions: 384; neighbours:

@terry-xiaoyu terry-xiaoyu merged commit 9ff8e92 into bug_fixs/5.8.x Jan 19, 2023
@terry-xiaoyu terry-xiaoyu deleted the fix-relup-function-clause-5.8.7 branch January 19, 2023 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants