matrix-org / matrix-ircd

An IRCd implementation backed by Matrix.
Apache License 2.0
226 stars 41 forks source link

Server hang in tight loop upon connection if wrong HS URL is provided #21

Open MarcoMatarazzo opened 8 years ago

MarcoMatarazzo commented 8 years ago

If matrix-ircd is started with a wrong HS URL (and that seems to include a self-signed HTTPS url) the server gets stuck on

    Oct 24 10:38:58.161 DEBG Accepted connection
    Oct 24 10:38:58.161 TRCE Await login
    Oct 24 10:38:58.161 TRCE IRC Polled
    Oct 24 10:38:58.167 TRCE IRC Polled
    Oct 24 10:38:58.168 TRCE Got IRC line, line: PASS XXXXX
    Oct 24 10:38:58.168 TRCE Got command, command: PASS
    Oct 24 10:38:58.168 TRCE IRC Polled
    Oct 24 10:38:58.331 TRCE IRC Polled
    Oct 24 10:38:58.331 TRCE Got IRC line, line: NICK XXXXX
    Oct 24 10:38:58.331 TRCE Got command, command: NICK
    Oct 24 10:38:58.331 TRCE IRC Polled
    Oct 24 10:38:58.331 TRCE Got IRC line, line: USER XXXXX 8 * XXXXX
    Oct 24 10:38:58.331 TRCE Got command, command: USER
    Oct 24 10:38:58.332 INFO Got nick and user
    Oct 24 10:38:58.332 TRCE IRC conn values, nick: XXXXX, user: XXXXX, password: XXXXX