Upgrades via gnutls-cli are too slow to be done opportunistically.
2011-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * proto-stream.el (proto-stream-open-starttls): Only do opportunistic
+ STARTTLS upgrades if we have built-in gnutls support. Upgrades via
+ gnutls-cli are too slow to be done opportunistically.
+
* gnus-start.el (gnus-get-unread-articles): Slight cleanup.
(gnus-read-active-for-groups): Don't try to finish getting stuff where
we had no early-data returned.
(resulting-type 'plain)
starttls-command)
- ;; If we have STARTTLS support, try to upgrade the connection.
+ ;; If we have built-in STARTTLS support, try to upgrade the
+ ;; connection.
(when (and (or (fboundp 'open-gnutls-stream)
- (executable-find "gnutls-cli"))
+ (and require-tls
+ (executable-find "gnutls-cli")))
capabilities success-string starttls-function
(setq starttls-command
(funcall starttls-function capabilities)))