aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-03-18 11:41:42 +0000
committerThien-Thi Nguyen2007-03-18 11:41:42 +0000
commit904bb06ca2720f78b96c0509c961dafa2f78d233 (patch)
treea6678409e713d2d82870e3c27bccd6b72842c494
parentc601a8ed61f7f9e5dc2f2434dc7c391440ae4ac3 (diff)
downloademacs-904bb06ca2720f78b96c0509c961dafa2f78d233.tar.gz
emacs-904bb06ca2720f78b96c0509c961dafa2f78d233.zip
(open-tls-stream): In handshake-waiting loop,
don't wait more if there is output available to process.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tls.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e8bd115d64b..32b3e71373d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-03-18 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * net/tls.el (open-tls-stream): In handshake-waiting loop,
4 don't wait more if there is output available to process.
5
12007-03-18 Nick Roberts <nickrob@snap.net.nz> 62007-03-18 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * progmodes/compile.el (compilation-find-file): Revert change 8 * progmodes/compile.el (compilation-find-file): Revert change
diff --git a/lisp/net/tls.el b/lisp/net/tls.el
index 3b6f0ac44be..9de74ca19d4 100644
--- a/lisp/net/tls.el
+++ b/lisp/net/tls.el
@@ -146,8 +146,8 @@ Fourth arg PORT is an integer specifying a port to connect to."
146 (set-buffer buffer) ;; XXX "blue moon" nntp.el bug 146 (set-buffer buffer) ;; XXX "blue moon" nntp.el bug
147 (goto-char (point-min)) 147 (goto-char (point-min))
148 (not (setq done (re-search-forward tls-success nil t))))) 148 (not (setq done (re-search-forward tls-success nil t)))))
149 (accept-process-output process 1) 149 (unless (accept-process-output process 1)
150 (sit-for 1)) 150 (sit-for 1)))
151 (message "Opening TLS connection with `%s'...%s" cmd 151 (message "Opening TLS connection with `%s'...%s" cmd
152 (if done "done" "failed")) 152 (if done "done" "failed"))
153 (if done 153 (if done