# HG changeset patch # User Thien-Thi Nguyen # Date 1174218013 0 # Node ID a4570ccecc89be84e32a4e6f64ec1cd465ccedd9 # Parent a6a84e38865263abad043e910d41eb7d0f5d19b8 (open-tls-stream): In handshake-waiting loop, don't wait more if there is output available to process. diff -r a6a84e388652 -r a4570ccecc89 lisp/net/tls.el --- a/lisp/net/tls.el Sun Mar 18 08:07:17 2007 +0000 +++ b/lisp/net/tls.el Sun Mar 18 11:40:13 2007 +0000 @@ -146,8 +146,8 @@ (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