don't wait more if there is output available to process.
+2007-03-18 Thien-Thi Nguyen <ttn@gnu.org>
+
+ * net/tls.el (open-tls-stream): In handshake-waiting loop,
+ don't wait more if there is output available to process.
+
2007-03-18 Nick Roberts <nickrob@snap.net.nz>
* progmodes/compile.el (compilation-find-file): Revert change
(set-buffer buffer) ;; XXX "blue moon" nntp.el bug
(goto-char (point-min))
(not (setq done (re-search-forward tls-success nil t)))))
- (accept-process-output process 1)
- (sit-for 1))
+ (unless (accept-process-output process 1)
+ (sit-for 1)))
(message "Opening TLS connection with `%s'...%s" cmd
(if done "done" "failed"))
(if done