# HG changeset patch # User Kim Alvefur # Date 1584907989 -3600 # Node ID 929c95e518f0abaf8f0517189d326b67401948de # Parent e4034f6668a5233eedea6f27cac27a19e9b5981b# Parent 3fce670e073300889a08c354e26287d6d4d2a111 Merge 0.11->trunk diff -r e4034f6668a5 -r 929c95e518f0 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Sat Mar 21 00:00:50 2020 +0100 +++ b/plugins/mod_admin_telnet.lua Sun Mar 22 21:13:09 2020 +0100 @@ -596,9 +596,14 @@ common_info(session, line); if session.secure then local sock = session.conn and session.conn.socket and session.conn:socket(); - if sock and sock.info then - local info = sock:info(); - line[#line+1] = ("(%s with %s)"):format(info.protocol, info.cipher); + if sock then + local info = sock.info and sock:info(); + if info then + line[#line+1] = ("(%s with %s)"):format(info.protocol, info.cipher); + else + -- TLS session might not be ready yet + line[#line+1] = "(cipher info unavailable)"; + end if sock.getsniname then local name = sock:getsniname(); if name then @@ -611,8 +616,6 @@ line[#line+1] = ("(ALPN:%q)"):format(proto); end end - else - line[#line+1] = "(cipher info unavailable)"; end else line[#line+1] = "(insecure)"; diff -r e4034f6668a5 -r 929c95e518f0 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Sat Mar 21 00:00:50 2020 +0100 +++ b/plugins/mod_storage_sql.lua Sun Mar 22 21:13:09 2020 +0100 @@ -649,6 +649,7 @@ Index { name="prosodyarchive_index", unique = engine.params.driver ~= "MySQL", "host", "user", "store", "key" }; Index { name="prosodyarchive_with_when", "host", "user", "store", "with", "when" }; Index { name="prosodyarchive_when", "host", "user", "store", "when" }; + Index { name="prosodyarchive_sort", "host", "user", "store", "sort_id" }; }; engine:transaction(function() ProsodyArchiveTable:create(engine);