unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Noah Friedman <friedman@splode.com>
Subject: Re: Last change to process.c breaks fetching pop3 mail (gnus/pop3.el)
Date: Thu, 03 Jun 2004 16:26:01 -0700 (PDT)	[thread overview]
Message-ID: <20040603162601.832889.FMU25511@nutty-waffle-cone.splode.com> (raw)
In-Reply-To: <m3hdtsb74v.fsf@kfs-l.imdomain.dk> (no-spam@cua.dk , 04 Jun 2004 00:37:20 +0200)

>To continue on this, what is the proper message to pass to the
>sentinel if the connection was closed by remote peer (or broken).
>
>Current message "exited abnormally with code 256" isn't very good, 
>so perhaps we should change that as well (to what ...?)
>
>However existing code may rely on the current message, so maybe we
>need to leave it as is?

I did a web search just to see if there were any snippets of code which
actually tested for this string.  There weren't a lot, although it's
possible that program sources don't often get indexed.  None of the elisp
files I have archived, including gnu-emacs-sources archives going back
a few years, had any instances of that string literal.  ERC was just about
the only case I could find and that's one of two applications (the other
being zenirc) that prompted me to investigate the sentinel problem in the
first place.

In fact there hasn't been much reason to examine that string because the
process sentinel for network connections has never been called before in
this case; only when the remote end closes the connection would it get
called.  This bug is very old--I can reproduce it in emacs 18.59.

>> But "finished" is the wrong way to decribe delete-process.
>> "deleted" would be more appropriate.
>
>Normally, you would use delete-process to close the connection.
>
>So in that aspect "closed" would be better than "deleted".

"closed" seems ambiguous to me; either side could close a connection.
But only the local side can delete it.  I think changing the process status
signal is the most reliable indicator of who requested the disconnection.
In the meantime the reason string ought to be made more user-friendly
though I don't have any good suggestions.

  reply	other threads:[~2004-06-03 23:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30 22:34 Last change to process.c breaks fetching pop3 mail (gnus/pop3.el) Kim F. Storm
2004-05-30 23:09 ` Noah Friedman
2004-05-31 21:06   ` Kim F. Storm
2004-05-31 21:34     ` Noah Friedman
2004-06-02  3:43       ` Richard Stallman
2004-06-02 13:51         ` Kim F. Storm
2004-06-02 22:56           ` Richard Stallman
2004-06-02 23:08             ` Noah Friedman
2004-06-03 11:48             ` Kim F. Storm
2004-06-03 22:37               ` Kim F. Storm
2004-06-03 23:26                 ` Noah Friedman [this message]
2004-06-04 14:20                   ` Kim F. Storm
2004-06-04 17:33                 ` Richard Stallman
2004-06-06 22:36                   ` Kim F. Storm
2004-06-04  2:03               ` Richard Stallman
2004-06-04  8:10                 ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040603162601.832889.FMU25511@nutty-waffle-cone.splode.com \
    --to=friedman@splode.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).