all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Chasing down a network problem
@ 2012-12-26 21:01 Lars Ingebrigtsen
  2012-12-26 21:02 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2012-12-26 21:01 UTC (permalink / raw)
  To: emacs-devel

Sometimes, while talking to imap.gmail.com, the connection hangs
forever.  `C-g'-ing and popping to the buffer reveals that the process
is invariably dead when this happens.

The loop is basically:

	  (while (memq (process-status process) '(open run))
            ...
	    (accept-process-output process 1))

The connection is a TLS one.

Is it at all possible that a loop like this won't allow Emacs to update
the status of the connection?  So that `process-status' doesn't get the
right response until we hit the idle loop?

It sounds kinda totally unlikely, but I thought I'd ask.

I've added a lot more debugging code now, but it's very difficult to
reproduce the bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-27 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-26 21:01 Chasing down a network problem Lars Ingebrigtsen
2012-12-26 21:02 ` Lars Ingebrigtsen
2012-12-27 17:31   ` Didier Verna

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.