torhve / weechat-matrix-protocol-script

A WeeChat script in Lua that implements the matrix.org chat protocol
349 stars 52 forks source link

Takes forever to connect to matrix #83

Open ryzokuken opened 7 years ago

ryzokuken commented 7 years ago

Hi all!

For me, it takes forever to connect to matrix. In the past, I have connected a few times, but usually I grow impatient. Maybe something's wrong with my configuration? Is it usual for it to take too long to connect?

Weechat version: 1.9

wucke13 commented 7 years ago

What do you mean that it takes forever? Normally, it should take five to seven seconds until Call to API errored in command url:https://matrix.org/_matrix/client/r0/login, maybe timeout? shows up in the matrix main view, which of course means that the connect did not succeed. Does this occur?

ryzokuken commented 7 years ago

@wucke13 Yes, I usually get this kind of messages. How long does the plugin wait after such an error before sending another request?

wucke13 commented 7 years ago

@ryzokuken In the actual build there is a hardcoded timeout, which happens to be 5 seconds in most cases. I made some modifications, which allow you to specify a custom timeout via the weechat settings interface. This change is still waiting to be merged into the main branch. If you want to try whether this fixes your problem, feel free to try my changed version from the forked repo in my github account.

ryzokuken commented 7 years ago

Okay. I will try building weechat from source.

On Mon 17 Jul, 2017, 4:51 PM wucke13, notifications@github.com wrote:

@ryzokuken https://github.com/ryzokuken In the actual build there is a hardcoded timeout, which happens to be 5 seconds in most cases. I made some modifications, which allow you to specify a custom timeout via the weechat settings interface. This change is still waiting to be merged into the main branch. If you want to try whether this fixes your problem, feel free to try my changed version from the forked repo in my github account.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/torhve/weechat-matrix-protocol-script/issues/83#issuecomment-315728842, or mute the thread https://github.com/notifications/unsubscribe-auth/AMg3MtdZ6SXS9Ezi3mb_6pgiR-bvy73Bks5sO0PKgaJpZM4OYi0p .

wucke13 commented 7 years ago

@ryzokuken No, there is no need to do so. I expressed myself in a misleading manner. The "hardcoded timeout" is in matrix.lua. There is no need to change anything in weechat itself, so no need to recompile it. Just exchange your matrix.lua with the one from my github repo.

ryzokuken commented 7 years ago

I'll add your repo as a remote and shift to its master, thanks.

On Mon 17 Jul, 2017, 6:31 PM wucke13, notifications@github.com wrote:

No, there is no need to do so. I expressed myself in a misleading manner. The "hardcoded timeout" is in matrix.lua. There is no need to change anything in weechat itself, so no need to recompile it. Just exchange your matrix.lua with the one from my github repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/torhve/weechat-matrix-protocol-script/issues/83#issuecomment-315748728, or mute the thread https://github.com/notifications/unsubscribe-auth/AMg3MjX9-ozNoHAcqhPTuMDFJ_Z2uMykks5sO1sggaJpZM4OYi0p .