From: Magnus Henoch <magnus.henoch@gmail.com>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: TLS problem: gnutls-e-again
Date: Sat, 05 Mar 2016 19:05:25 +0000 [thread overview]
Message-ID: <m1twkk68zu.fsf@mail.gmail.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "Sat\, 05 Mar 2016 17\:04\:52 +0100 \(2 hours\, 58 minutes\, 46 seconds ago\)"
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Magnus Henoch <magnus.henoch@gmail.com> writes:
>
>> Connecting to xmpp.l.google.com:5222... gnutls.el:
>> (err=[gnutls-e-again] Resource temporarily unavailable, try
>> again.) boot: (:priority NORMAL :hostname gmail.com :loglevel
>> 0 :min-prime-bits nil :trustfiles
>> (/opt/local/share/curl/curl-ca-bundle.crt) :crlfiles nil
>> :keylist nil :verify-flags nil :verify-error (:hostname . t)
>> :callbacks nil) magnus.henoch@gmail.com: connection lost:
>> ‘STARTTLS negotiation failed: GnuTLS error: #<process jabber>,
>> gnutls-e-again’
>>
>> Unfortunately, my attempts at creating a self-contained test
>> case have failed so far... What jabber.el does, is that it
>> opens an asynchronous network connection (:nowait t), performs
>> XMPP feature negotiation in cleartext, and then attempts to do
>> STARTTLS using gnutls-negotiate.
>
> On non-blocking sockets, gnutls-boot no longer waits for the
> connection to complete. But if you try to talk to it before
> it's completed, it should block the communication until that has
> happened, so what function is it that gets that return value?
The symbol gnutls-e-again was returned from gnutls-boot, inside
gnutls-negotiate. It then called gnutls-errorp on it, which
returned t, and thus an error was signalled.
> Anyway, there should be a way to specify that you want TLS
> negotiation to complete even on non-blocking sockets, so I've
> now added this to the trunk. It should probably fix your use
> case, too.
>
> Could you try updating from git and running jabberd again?
That fixes the problem. Thanks!
Regards,
Magnus
next reply other threads:[~2016-03-05 19:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-05 19:05 Magnus Henoch [this message]
2016-03-06 9:20 ` TLS problem: gnutls-e-again Lars Magne Ingebrigtsen
2016-05-31 18:22 ` Ted Zlatanov
-- strict thread matches above, loose matches on Subject: below --
2016-03-05 13:37 Magnus Henoch
2016-03-05 16:04 ` Lars Magne Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1twkk68zu.fsf@mail.gmail.com \
--to=magnus.henoch@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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 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.