matrix-org / matrix-ircd

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

Receiving a 504 (and possibly others) HTTP error from synapse makes the ircd reconnect #29

Open tadzik opened 7 years ago

tadzik commented 7 years ago

I noticed a lot of reconnects on my client, they seem to coincide with the following repeated output in the ircd log:

Dec 05 01:04:50.327 WARN Unhandled IO error, error: Sync returned 504
  ip: 127.0.0.1, port: 40321
Dec 05 01:05:21.923 DEBG Accepted connection
Dec 05 01:05:21.924 INFO Got nick and user

Looks like it's overreacting to 5xx errors at least.

rodneyrod commented 6 years ago

I've gotten the same issue, on connecting it does the initial room sync then crashes with:

Oct 02 01:44:43.579 WARN Unhandled IO error, error: Received 500 response
  ip: 127.0.0.1, port: 40351

Tried with plain HTTP, same issue except on port 40381.

TigerP commented 4 years ago

I also have this issue Jan 01 18:31:18.443 WARN Unhandled IO error (wo/TLS), error: Received 500 response I wonder why it is getting the 500 response.