unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Cc: Dmitry Antipov <dmantipov@yandex.ru>
Subject: Re: Several problems
Date: Wed, 30 Jul 2014 16:02:23 -0400	[thread overview]
Message-ID: <87vbqeobsg.fsf@lifelogs.com> (raw)

Hello David and Dmitry,

I see the following situation (using the Git mirror):

* Dmitry's commit 4c19675328d0de84cc3181cfc118973f591e8243 broke GnuTLS
  connections and possibly more. I couldn't even do the initial
  connection.

* the followup fix was good for the initial connection, but larger
  amounts of data fail:

commit 85113e79cb92f1d2798db5754a9edd54567d2b0e
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date:   Mon Jul 28 18:50:55 2014 +0400

    Fix Gnus-related issues reported by David Kastrup <dak@gnu.org> in
    <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00370.html>.
    * atimer.c (timerfd_callback): Always read expiration data.
    Add comment.
    (turn_on_atimers) [HAVE_TIMERFD]: Disarm timerfd timer.
    * process.c (add_timer_wait_descriptor): Add timer descriptor
    to input_wait_mask and non_process_wait_mask as well.

I've only tested with GnuTLS connections.

The symptom seems to be that GnuTLS will read data, then gets a retry,
and finally hangs forever. I can duplicate it by trying to read the last
200 messages in emacs-devel and I believe even as little as 16K will
trigger the behavior. But if I read the last 1 message only (`C-u 1
RET') then things work.  If this is indeed a timer problem, it will be
hard to replicate but I hope this is enough data.

It would be nice if we could automate the testing of this behavior.  It
can probably be done with a TLS server (`gnutls-serv' for instance) but
in my experience that's a very tricky type of test that tends to throw
spurious errors.  So it may just be something we live with.

I have probably missed the discussion about this timerfd feature (having
just come back from vacation), so please forgive my ignorance, but is
this something that should always be enabled, or can it be configurable?
If it interferes with GnuTLS connections, maybe it should be disabled
for them?

I am following up to emacs-devel instead of opening a bug report because
that's where David Kastrup posted initially.  If you prefer a bug
report, let me know.

Thanks!
Ted




             reply	other threads:[~2014-07-30 20:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 20:02 Ted Zlatanov [this message]
2014-07-30 20:10 ` Several problems Ted Zlatanov
2014-07-31  4:22 ` Dmitry Antipov
2014-07-31 23:23   ` Gnus encrypted connections hang (was: Several problems) Ted Zlatanov
2014-07-31 23:41     ` Gnus encrypted connections hang Ted Zlatanov
2014-08-01  7:01       ` Dmitry Antipov
2014-08-01  7:13     ` Dmitry Antipov
2014-08-01  9:44       ` Ted Zlatanov
  -- strict thread matches above, loose matches on Subject: below --
2014-07-28 11:24 Several problems David Kastrup
2014-07-28 12:09 ` Dmitry Antipov
2014-07-28 12:32 ` martin rudalics
2014-08-01  9:43   ` Nicolas Avrutin
2014-08-01 10:30     ` martin rudalics
2014-08-01 13:06     ` martin rudalics
2014-08-02  4:10       ` Nicolas Avrutin
2014-08-02  6:57         ` Eli Zaretskii
2014-08-02  7:28           ` Nicolas Avrutin
2014-08-02  7:39             ` Eli Zaretskii
2014-08-02  8:06           ` martin rudalics
2014-08-04 17:22       ` martin rudalics
2014-08-04 21:54         ` Nicolas Avrutin
2014-08-05  8:36           ` martin rudalics
2014-08-05 19:08             ` Faried Nawaz
2014-08-06  9:41               ` martin rudalics

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=87vbqeobsg.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /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).