-
Notifications
You must be signed in to change notification settings - Fork 51
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
Auto-reconnect after suspend #327
Comments
You can use lagmon – I'm currently amazed that apparently, |
Thanks @jorgenschaefer! That answer my questions and I was able to make it work properly. I don't have to worry about suspending my laptop again ;) I didn't get your last comment, though :/ --seems more technical that I can handle :) |
I think this should be highlighted in wiki - I've hit this issue as well. It also might make sense to enable lagmon by default until this Emacs bug is resolved. I've enabled lagmon via customize and have looked at related options as well. What's the value for "Circe Lagmon Timer Tick" is it seconds ot smth else? Would be nice to expand docs to make it easier to understand. |
@humitos Yeah, that was a technical observation. "Emacs does not do the right thing there even though it should know better, wow!" :-) @osmoC Yes, better documentation would be nice. If you have good ideas, please change the wiki and suggest something via a PR :-) Apparently, if the observation above is correct, we can file an Emacs bug report. Can someone who experiences this problem run |
i see the gitter irc bridge server reconnecting every 2 minutes, but maybe its just gitter's fault since freenode is stable |
Do we have a workaround for this?
@jorgenschaefer I just seen this comment. Sorry for the late response. I will test it when I hit this issue. A quick test was to discconnect my laptop from wifi and run that command. It returns After the
I tried to follow a little bit the Let me know what else I can provide or how I can help.
@untoreh I'm not experimenting this issue with my gitter account. |
Another thing that I found... This line shouldn't be (eq (irc-connection-state (circe-server-process))
'registered) Note that I'm calling |
When the server is running and connected
I see this message in my circe buffer:
|
Yes, you have to enable the lagmon mode so it can install a lagmon handler. The tests you ran means that Emacs knows that a process disconnected, but it does not tell the program (Circe) that is running on it about that. That's terrible. :-( To work around this, Circe would have to continuously check the status. Emacs really should notify the process sentinel there. (Anyone want to volunteer submitting an Emacs bug report? :-D) |
For me at least, the command returns |
Both tools probably suffer from a similar problem as Emacs. They should indeed notice a problem and disconnect. Maybe openssl/gnutls have a keepalive option somewhere? That would help. |
I'm dealing with similar problems. I'm not familiar with Emacs networking, but how difficult would it be to use |
I suspect there are still problems with o-n-s for windows, but I'd be very happy with switching to o-n-s in irc.el – getting rid of that self-made openssl wrapper would be good, too. |
@humitos because the def value of lagmon reconnect is |
Gitter's irc bridge dosent transmit CTCP messages so lagmon wont work (and probably interferes). I wouldn't reccomend using it there. |
Hi! Is it possible to enable circe-lagmon-mode for this scope only on a specific server (e.g. Freenode) and keep it disabled for others? |
There's the |
I didn't notice it :( |
Hi! Thanks for this plugin :)
I'm migrating from ERC to Circe and I found a couple of things that are too much simpler and they "just works" -most of them I spent hours to make it work in ERC :)
One thing that I'm not being able to configure as I had in my ERC setup is that "I want to be connected to Freenode everytime that I have emacs opened". So, I auto connect when emacs starts just by running
at the end of my circe settings.
Then, when I close the lid of the notebook it gets suspended and when I opened it and resume I'd like Circe to detect that I'm offline and re-connect automatically. How I can do that?
I used to have this hack in my ERC setup, as a reference: it checks every 25 seconds if the ERC server process is alive and if not reconnects.
All my circe settings: https://github.com/humitos/emacs-configuration/blob/bd1f39d917f3e4150514db0b1b261090cf641f0f/startup.d/circe.el
The text was updated successfully, but these errors were encountered: