emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chasing down a network problem


From: Didier Verna
Subject: Re: Chasing down a network problem
Date: Thu, 27 Dec 2012 18:31:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin)

Lars Magne Ingebrigtsen wrote:

> Lars Ingebrigtsen <address@hidden> writes:
>
>> I've added a lot more debugging code now, but it's very difficult to
>> reproduce the bug.
>
> D'oh!
>
> There's a condition-case around the loop with this as the quit
> condition:
>
>       (quit
>        ;; The user hit C-g while we were waiting: kill the process, in case
>        ;; it's a gnutls-cli process that's stuck (tends to happen a lot behind
>        ;; NAT routers).
>        (delete-process process)
>
> Which explains why the process is dead.
>
> Never mind...

  FWIW, I have a lot of problems with mail and news server connections
  that seem to hang up all the time (with both GNU Emacs and XEmacs). To
  the point that I have added this to my gnusrc:

(defcustom dvl-gnus-kill-server-connections t
  "Whether to kill Gnus server connections immediately after use."
  :type 'boolean)

;; This function is hooked into gnus-get-new-news-hook and
;; gnus-summary-exit-hook in order to prevent hangs.
(defun dvl-gnus-kill-server-connections ()
  "Kill Gnus server connections.
See also the variable `dvl-gnus-kill-server-connections'."
  (when dvl-gnus-kill-server-connections
    (call-process "killall" nil nil nil "gnutls-cli")))


This makes things a little better, like, 50%...

-- 
ELS 2013, June 3/4, Madrid, Spain:  http://els2013.european-lisp-symposium.org

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]